Browse Source

Protect Vector3 against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
901e01c24e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/math/Vector3.js

+ 2 - 2
src/math/Vector3.js

@@ -19,7 +19,7 @@ function Vector3( x, y, z ) {
 
 }
 
-Vector3.prototype = {
+Object.assign( Vector3.prototype, {
 
 	constructor: Vector3,
 
@@ -760,7 +760,7 @@ Vector3.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Vector3 };