mirror of
https://github.com/konvajs/konva.git
synced 2025-09-22 20:14:01 +08:00
added shapeType property to Sprite which fixes a bug related to cloning Sprites. Also added more unit tests
This commit is contained in:
@@ -17,7 +17,7 @@ Kinetic.Sprite.prototype = {
|
||||
index: 0,
|
||||
frameRate: 17
|
||||
});
|
||||
|
||||
this.shapeType = "Sprite";
|
||||
config.drawFunc = this.drawFunc;
|
||||
// call super constructor
|
||||
Kinetic.Shape.call(this, config);
|
||||
|
Reference in New Issue
Block a user