From ad0ecd9fe9375fc35fa331c1aadb65628ad7efa9 Mon Sep 17 00:00:00 2001 From: Eric Rowell Date: Fri, 12 Apr 2013 01:14:31 -0700 Subject: [PATCH] fixes #388 unregister shape color key on destroy, not remove --- src/Shape.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Shape.js b/src/Shape.js index 7d367b95..f756015a 100644 --- a/src/Shape.js +++ b/src/Shape.js @@ -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) {