Manually merge #522 from @qzix13
This commit is contained in:
parent
951f1049ec
commit
d62a4aa432
1 changed files with 1 additions and 15 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue