Browse Source

Protect Vector4 against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
5e7c2ef1b6
1 changed files with 2 additions and 2 deletions
  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 };