mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
fixes #388 unregister shape color key on destroy, not remove
This commit is contained in:
@@ -173,8 +173,8 @@
|
|||||||
getShapeType: function() {
|
getShapeType: function() {
|
||||||
return this.shapeType;
|
return this.shapeType;
|
||||||
},
|
},
|
||||||
remove: function() {
|
destroy: function() {
|
||||||
Kinetic.Node.prototype.remove.call(this);
|
Kinetic.Node.prototype.destroy.call(this);
|
||||||
delete Kinetic.Global.shapes[this.colorKey];
|
delete Kinetic.Global.shapes[this.colorKey];
|
||||||
},
|
},
|
||||||
drawScene: function(canvas) {
|
drawScene: function(canvas) {
|
||||||
|
Reference in New Issue
Block a user