implemented clone method (inspired by matteo78) and added thorough unit tests

This commit is contained in:
Eric Rowell
2012-07-07 14:43:12 -07:00
parent 7f7cd24838
commit a8ab9a2533
7 changed files with 150 additions and 18 deletions

View File

@@ -32,7 +32,7 @@ Kinetic.Sprite = Kinetic.Shape.extend({
this._super(config);
var that = this;
this.on('animationChange', function() {
this.on('animationChange.kinetic', function() {
// reset index when animation changes
that.setIndex(0);
});