mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
a small bit of animation code cleanup
This commit is contained in:
parent
590889f898
commit
d0148a50ac
@ -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;
|
||||
|
@ -174,7 +174,7 @@ Test.Modules.MANUAL = {
|
||||
anim.start();
|
||||
|
||||
setTimeout(function() {
|
||||
//anim.stop();
|
||||
anim.stop();
|
||||
}, 3000);
|
||||
},
|
||||
'ANIMATION - test multiple animations': function(containerId) {
|
||||
|
Loading…
Reference in New Issue
Block a user