Преглед изворни кода

Protect InterleavedBufferAttribute against the closure circular reference bug

Tristan VALCKE пре 9 година
родитељ
комит
494b7efa4d
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      src/core/InterleavedBufferAttribute.js

+ 2 - 3
src/core/InterleavedBufferAttribute.js

@@ -16,8 +16,7 @@ function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normal
 
 }
 
-
-InterleavedBufferAttribute.prototype = {
+Object.assign( InterleavedBufferAttribute.prototype, {
 
 	constructor: InterleavedBufferAttribute,
 
@@ -127,7 +126,7 @@ InterleavedBufferAttribute.prototype = {
 
 	}
 
-};
+} );
 
 
 export { InterleavedBufferAttribute };

粤ICP备19079148号