added shapeType property to Sprite which fixes a bug related to cloning Sprites. Also added more unit tests

This commit is contained in:
Eric Rowell
2012-11-04 18:15:29 -08:00
parent 2e31d9f2b6
commit 356c302ac3
2 changed files with 127 additions and 2 deletions

View File

@@ -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);