소스 검색

Protect Vector4 against the closure circular reference bug

Tristan VALCKE 8 년 전
부모
커밋
5e7c2ef1b6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/math/Vector4.js

+ 2 - 2
src/math/Vector4.js

@@ -15,7 +15,7 @@ function Vector4( x, y, z, w ) {
 
 }
 
-Vector4.prototype = {
+Object.assign( Vector4.prototype, {
 
 	constructor: Vector4,
 
@@ -628,7 +628,7 @@ Vector4.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Vector4 };