Browse Source

Protect InterleavedBufferAttribute against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
494b7efa4d
1 changed files with 2 additions and 3 deletions
  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,
 	constructor: InterleavedBufferAttribute,
 
 
@@ -127,7 +126,7 @@ InterleavedBufferAttribute.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { InterleavedBufferAttribute };
 export { InterleavedBufferAttribute };