diff --git a/src/Animation.js b/src/Animation.js index eb4a5f2f..e4a64fca 100644 --- a/src/Animation.js +++ b/src/Animation.js @@ -60,9 +60,8 @@ this._handleAnimation(); }; Kinetic.Animation._removeAnimation = function(anim) { - var id = anim.id; - var animations = this.animations; - for(var n = 0; n < animations.length; n++) { + var id = anim.id, animations = this.animations, len = animations.length; + for(var n = 0; n < len; n++) { if(animations[n].id === id) { this.animations.splice(n, 1); break; diff --git a/tests/js/manualTests.js b/tests/js/manualTests.js index 9fe36b3e..18d2c254 100644 --- a/tests/js/manualTests.js +++ b/tests/js/manualTests.js @@ -174,7 +174,7 @@ Test.Modules.MANUAL = { anim.start(); setTimeout(function() { - //anim.stop(); + anim.stop(); }, 3000); }, 'ANIMATION - test multiple animations': function(containerId) {