Browse Source

Fix Interpolant alias

Tristan VALCKE 8 years ago
parent
commit
2254a241d0
1 changed files with 10 additions and 6 deletions
  1. 10 6
      src/math/Interpolant.js

+ 10 - 6
src/math/Interpolant.js

@@ -36,12 +36,6 @@ Object.assign( Interpolant.prototype, {
 
 	constructor: Interpolant,
 
-	beforeStart_: //( 0, t, t0 ), returns this.resultBuffer
-		Interpolant.prototype.copySampleValue_,
-
-	afterEnd_: //( N-1, tN-1, t ), returns this.resultBuffer
-		Interpolant.prototype.copySampleValue_,
-
 	evaluate: function( t ) {
 
 		var pp = this.parameterPositions,
@@ -251,5 +245,15 @@ Object.assign( Interpolant.prototype, {
 
 } );
 
+//!\ DECLARE ALIAS AFTER assign prototype !
+Object.assign( Interpolant.prototype, {
+
+	//( 0, t, t0 ), returns this.resultBuffer
+	beforeStart_: Interpolant.prototype.copySampleValue_,
+
+	//( N-1, tN-1, t ), returns this.resultBuffer
+	afterEnd_: Interpolant.prototype.copySampleValue_,
+
+} );
 
 export { Interpolant };