Browse Source

Protect Box3 against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
3c4475d3ec
1 changed files with 2 additions and 2 deletions
  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 };