Pārlūkot izejas kodu

Protect Plane against the closure circular reference bug

Tristan VALCKE 9 gadi atpakaļ
vecāks
revīzija
545f449cdc
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 };