Kaynağa Gözat

Protect Curve against the closure circular reference bug

Tristan VALCKE 9 yıl önce
ebeveyn
işleme
512aa4eb4b
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      src/extras/core/Curve.js

+ 3 - 2
src/extras/core/Curve.js

@@ -39,7 +39,7 @@ import { Matrix4 } from '../../math/Matrix4';
 
 
 function Curve() {}
 function Curve() {}
 
 
-Curve.prototype = {
+Object.assign( Curve.prototype, {
 
 
 	constructor: Curve,
 	constructor: Curve,
 
 
@@ -382,6 +382,7 @@ Curve.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
+
 
 
 export { Curve };
 export { Curve };

粤ICP备19079148号