提交 d241b50a 编写于 作者: M Mr.doob

WebGLProperties: Simplified.

上级 a4b11362
......@@ -6,35 +6,38 @@ function WebGLProperties() {
var properties = {};
this.get = function ( object ) {
return {
var uuid = object.uuid;
var map = properties[ uuid ];
get: function ( object ) {
if ( map === undefined ) {
var uuid = object.uuid;
var map = properties[ uuid ];
map = {};
properties[ uuid ] = map;
if ( map === undefined ) {
}
map = {};
properties[ uuid ] = map;
return map;
}
};
return map;
this.delete = function ( object ) {
},
delete properties[ object.uuid ];
delete: function ( object ) {
};
delete properties[ object.uuid ];
},
this.clear = function () {
clear: function () {
properties = {};
properties = {};
}
};
}
export { WebGLProperties };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册