Manually merge #522 from @qzix13

This commit is contained in:
Chad Engler 2014-01-24 11:12:56 -08:00
parent 951f1049ec
commit d62a4aa432

View file

@ -75,21 +75,7 @@ Object.defineProperty(PIXI.DisplayObjectContainer.prototype, 'height', {
*/
PIXI.DisplayObjectContainer.prototype.addChild = function(child)
{
if(child.parent && child !== this)
{
//// COULD BE THIS???
child.parent.removeChild(child);
// return;
}
child.parent = this;
this.children.push(child);
// update the stage reference..
if(this.stage)child.setStageReference(this.stage);
this.addChildAt(child, this.children.length);
};
/**