mirror of
https://github.com/konvajs/konva.git
synced 2025-09-22 20:14:01 +08:00
implemented clone method (inspired by matteo78) and added thorough unit tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user