mirror of
https://github.com/konvajs/konva.git
synced 2026-01-09 11:34:38 +08:00
a small bit of animation code cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user