converting arguments object into true array for setters, restored the original underscore.js methods, and moved radius conversion logic from the setAttrs method to a radiusChange event listener in Ellipse

This commit is contained in:
Eric Rowell
2012-06-20 12:55:34 -07:00
parent ce5a8f3209
commit 5765ab749b
13 changed files with 96 additions and 78 deletions

View File

@@ -29,6 +29,12 @@ Kinetic.Sprite = function(config) {
};
// call super constructor
Kinetic.Shape.apply(this, [config]);
var that = this;
this.on('animationChange', function() {
// reset index when animation changes
that.setIndex(0);
});
};
/*
* Sprite methods