diff --git a/src/pixi/display/DisplayObjectContainer.js b/src/pixi/display/DisplayObjectContainer.js index fd2a379..1a879f9 100644 --- a/src/pixi/display/DisplayObjectContainer.js +++ b/src/pixi/display/DisplayObjectContainer.js @@ -232,9 +232,14 @@ */ PIXI.DisplayObjectContainer.prototype.swapChildren = function(child, child2) { + /* + * this funtion needs to be recoded.. + * can be done a lot faster.. + */ return; - // need to fix this function :/ + // need to fix this function :/ + /* // TODO I already know this?? var index = this.children.indexOf( child ); var index2 = this.children.indexOf( child2 ); @@ -253,7 +258,7 @@ this.stage.__addChild(child); this.stage.__addChild(child2); - }*/ + } // swap the positions.. this.children[index] = child2; @@ -263,7 +268,7 @@ else { throw new Error(child + " Both the supplied DisplayObjects must be a child of the caller " + this); - } + }*/ } /**