Explorar el Código

Protect Box3 against the closure circular reference bug

Tristan VALCKE hace 9 años
padre
commit
3c4475d3ec
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/math/Box3.js

+ 2 - 2
src/math/Box3.js

@@ -13,7 +13,7 @@ function Box3( min, max ) {
 
 }
 
-Box3.prototype = {
+Object.assign( Box3.prototype, {
 
 	constructor: Box3,
 
@@ -473,7 +473,7 @@ Box3.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Box3 };

粤ICP备19079148号