Parcourir la source

Protect Curve against the closure circular reference bug

Tristan VALCKE il y a 9 ans
Parent
commit
512aa4eb4b
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  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() {}
 
-Curve.prototype = {
+Object.assign( Curve.prototype, {
 
 	constructor: Curve,
 
@@ -382,6 +382,7 @@ Curve.prototype = {
 
 	}
 
-};
+} );
+
 
 export { Curve };

粤ICP备19079148号