Browse Source

Protect Matrix3 against the closure circular reference bug

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

+ 2 - 2
src/math/Matrix3.js

@@ -25,7 +25,7 @@ function Matrix3() {
 
 
 }
 }
 
 
-Matrix3.prototype = {
+Object.assign( Matrix3.prototype, {
 
 
 	constructor: Matrix3,
 	constructor: Matrix3,
 
 
@@ -274,7 +274,7 @@ Matrix3.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { Matrix3 };
 export { Matrix3 };