Browse Source

Protect BufferAttribute against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
4a7168ca5f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/BufferAttribute.js

+ 2 - 2
src/core/BufferAttribute.js

@@ -32,7 +32,7 @@ function BufferAttribute( array, itemSize, normalized ) {
 
 }
 
-BufferAttribute.prototype = {
+Object.assign( BufferAttribute.prototype, {
 
 	constructor: BufferAttribute,
 
@@ -335,7 +335,7 @@ BufferAttribute.prototype = {
 
 	}
 
-};
+} );
 
 //