|
@@ -6,33 +6,28 @@ THREE.WebGLProperties = function () {
|
|
|
|
|
|
var properties = {};
|
|
|
|
|
|
- this.clear = function () {
|
|
|
+ this.get = function ( object ) {
|
|
|
|
|
|
- properties = {};
|
|
|
+ if ( properties[ object.uuid ] === undefined ) {
|
|
|
|
|
|
- }
|
|
|
+ properties[ object.uuid ] = {};
|
|
|
|
|
|
- this.delete = function ( object ) {
|
|
|
+ }
|
|
|
|
|
|
- delete properties[ object.uuid ];
|
|
|
+ return properties[ object.uuid ];
|
|
|
|
|
|
};
|
|
|
|
|
|
- this.get = function ( object ) {
|
|
|
-
|
|
|
- initObject( object );
|
|
|
+ this.delete = function ( object ) {
|
|
|
|
|
|
- return properties[ object.uuid ];
|
|
|
+ delete properties[ object.uuid ];
|
|
|
|
|
|
};
|
|
|
|
|
|
- function initObject ( object ) {
|
|
|
-
|
|
|
- if ( properties[ object.uuid ] === undefined ) {
|
|
|
+ this.clear = function () {
|
|
|
|
|
|
- properties[ object.uuid ] = {};
|
|
|
- }
|
|
|
+ properties = {};
|
|
|
|
|
|
- }
|
|
|
+ };
|
|
|
|
|
|
};
|