diff --git a/matrix.js b/matrix.js index 97c9c2d..1d510e0 100644 --- a/matrix.js +++ b/matrix.js @@ -104,8 +104,8 @@ proto.flush = function(t) { if(idx < 0) { return } - this._time.slice(0, idx) - this._components.slice(0, 16*idx) + this._time.splice(0, idx) + this._components.splice(0, 16*idx) } proto.lastT = function() { @@ -195,4 +195,4 @@ function createMatrixCameraController(options) { 0,0,1,0, 0,0,0,1] return new MatrixCameraController(matrix) -} \ No newline at end of file +}