Преглед изворни кода

Protect Line3 against the closure circular reference bug

Tristan VALCKE пре 9 година
родитељ
комит
c579905317
1 измењених фајлова са 2 додато и 2 уклоњено
  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号