File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -6,35 +6,38 @@ function WebGLProperties() {
6
6
7
7
var properties = { } ;
8
8
9
- this . get = function ( object ) {
9
+ return {
10
10
11
- var uuid = object . uuid ;
12
- var map = properties [ uuid ] ;
11
+ get : function ( object ) {
13
12
14
- if ( map === undefined ) {
13
+ var uuid = object . uuid ;
14
+ var map = properties [ uuid ] ;
15
15
16
- map = { } ;
17
- properties [ uuid ] = map ;
16
+ if ( map === undefined ) {
18
17
19
- }
18
+ map = { } ;
19
+ properties [ uuid ] = map ;
20
20
21
- return map ;
21
+ }
22
22
23
- } ;
23
+ return map ;
24
24
25
- this . delete = function ( object ) {
25
+ } ,
26
26
27
- delete properties [ object . uuid ] ;
27
+ delete : function ( object ) {
28
28
29
- } ;
29
+ delete properties [ object . uuid ] ;
30
+
31
+ } ,
30
32
31
- this . clear = function ( ) {
33
+ clear : function ( ) {
32
34
33
- properties = { } ;
35
+ properties = { } ;
36
+
37
+ }
34
38
35
39
} ;
36
40
37
41
}
38
42
39
-
40
43
export { WebGLProperties } ;
You can’t perform that action at this time.
0 commit comments