makes sure that animation is paused when steps is one

This commit is contained in:
Francisco Dans 2015-02-26 16:02:06 +01:00
parent 98a37771ca
commit 204df7829d

View File

@ -46,6 +46,9 @@ var cancelAnimationFrame = global.cancelAnimationFrame
this.running = true;
requestAnimationFrame(this._tick);
this.options.onStart && this.options.onStart();
if(this.options.steps === 1){
this.running = false;
}
},
isRunning: function() {