Просмотр исходного кода

Protect Matrix3 against the closure circular reference bug

Tristan VALCKE 9 лет назад
Родитель
Сommit
a1ff3d6442
1 измененных файлов с 2 добавлено и 2 удалено
  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,
 
@@ -274,7 +274,7 @@ Matrix3.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Matrix3 };

粤ICP备19079148号