Browse Source

Protect Matrix4 against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
59c545f2d7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/math/Matrix4.js

+ 2 - 2
src/math/Matrix4.js

@@ -33,7 +33,7 @@ function Matrix4() {
 
 
 }
 }
 
 
-Matrix4.prototype = {
+Object.assign( Matrix4.prototype, {
 
 
 	constructor: Matrix4,
 	constructor: Matrix4,
 
 
@@ -939,7 +939,7 @@ Matrix4.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { Matrix4 };
 export { Matrix4 };