Browse Source

Protect Plane against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
545f449cdc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/math/Plane.js

+ 2 - 2
src/math/Plane.js

@@ -12,7 +12,7 @@ function Plane( normal, constant ) {
 
 }
 
-Plane.prototype = {
+Object.assign( Plane.prototype, {
 
 	constructor: Plane,
 
@@ -232,7 +232,7 @@ Plane.prototype = {
 
 	}
 
-};
+} );
 
 
 export { Plane };