Explorar el Código

Protect Line3 against the closure circular reference bug

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

+ 2 - 2
src/math/Line3.js

@@ -12,7 +12,7 @@ function Line3( start, end ) {
 
 
 }
 }
 
 
-Line3.prototype = {
+Object.assign( Line3.prototype, {
 
 
 	constructor: Line3,
 	constructor: Line3,
 
 
@@ -126,7 +126,7 @@ Line3.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { Line3 };
 export { Line3 };

粤ICP备19079148号