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

Protect Box2 against the closure circular reference bug

Tristan VALCKE 9 лет назад
Родитель
Сommit
86f15b95b2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/math/Box2.js

+ 2 - 2
src/math/Box2.js

@@ -11,7 +11,7 @@ function Box2( min, max ) {
 
 
 }
 }
 
 
-Box2.prototype = {
+Object.assign( Box2.prototype, {
 
 
 	constructor: Box2,
 	constructor: Box2,
 
 
@@ -216,7 +216,7 @@ Box2.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { Box2 };
 export { Box2 };

粤ICP备19079148号