Browse Source

Protect Box2 against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
86f15b95b2
1 changed files with 2 additions and 2 deletions
  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,
 
@@ -216,7 +216,7 @@ Box2.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Box2 };