Skip to content

Commit d241b50

Browse files
committed
WebGLProperties: Simplified.
1 parent a4b1136 commit d241b50

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

src/renderers/webgl/WebGLProperties.js

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,38 @@ function WebGLProperties() {
66

77
var properties = {};
88

9-
this.get = function ( object ) {
9+
return {
1010

11-
var uuid = object.uuid;
12-
var map = properties[ uuid ];
11+
get: function ( object ) {
1312

14-
if ( map === undefined ) {
13+
var uuid = object.uuid;
14+
var map = properties[ uuid ];
1515

16-
map = {};
17-
properties[ uuid ] = map;
16+
if ( map === undefined ) {
1817

19-
}
18+
map = {};
19+
properties[ uuid ] = map;
2020

21-
return map;
21+
}
2222

23-
};
23+
return map;
2424

25-
this.delete = function ( object ) {
25+
},
2626

27-
delete properties[ object.uuid ];
27+
delete: function ( object ) {
2828

29-
};
29+
delete properties[ object.uuid ];
30+
31+
},
3032

31-
this.clear = function () {
33+
clear: function () {
3234

33-
properties = {};
35+
properties = {};
36+
37+
}
3438

3539
};
3640

3741
}
3842

39-
4043
export { WebGLProperties };

0 commit comments

Comments
 (0)