From 0800f1e31ab1848920b1733daa255930b7e9941e Mon Sep 17 00:00:00 2001 From: Eric Rowell Date: Thu, 27 Mar 2014 22:08:34 -0700 Subject: [PATCH] removed removeChildren and destroyChildren from stage. No need to override anymore --- src/Stage.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/Stage.js b/src/Stage.js index 0fad9c5e..98f57400 100644 --- a/src/Stage.js +++ b/src/Stage.js @@ -154,7 +154,7 @@ return Kinetic.Container.prototype.clone.call(this, obj); }, /** - * remove stage + * destroy stage * @method * @memberof Kinetic.Stage.prototype */ @@ -690,20 +690,6 @@ return; }, clearCache : function() { - }, - removeChildren : function() { - Kinetic.Container.prototype.removeChildren.call(this); - // clear all canvases - while (this.content.firstChild) { - this.content.removeChild(this.content.firstChild); - } - }, - destroyChildren : function() { - Kinetic.Container.prototype.destroyChildren.call(this); - // clear all canvases - while (this.content.firstChild) { - this.content.removeChild(this.content.firstChild); - } } }); Kinetic.Util.extend(Kinetic.Stage, Kinetic.Container);