Browse Source

Protect Curve against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
512aa4eb4b
1 changed files with 3 additions and 2 deletions
  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 };