fixes #388 unregister shape color key on destroy, not remove

This commit is contained in:
Eric Rowell
2013-04-12 01:14:31 -07:00
parent 9cb3cb9d63
commit ad0ecd9fe9

View File

@@ -173,8 +173,8 @@
getShapeType: function() {
return this.shapeType;
},
remove: function() {
Kinetic.Node.prototype.remove.call(this);
destroy: function() {
Kinetic.Node.prototype.destroy.call(this);
delete Kinetic.Global.shapes[this.colorKey];
},
drawScene: function(canvas) {