mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 09:50:05 +08:00
fixes #388 unregister shape color key on destroy, not remove
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user