소스 검색

Protect BufferAttribute against the closure circular reference bug

Tristan VALCKE 8 년 전
부모
커밋
4a7168ca5f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 = {
 
 	}
 
-};
+} );
 
 //