Update DisplayObjectContainer.js
Removed Undefined check as it it breaks pixi if an object is null
This commit is contained in:
parent
98fe30b7e3
commit
0881e2bf66
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ Object.defineProperty(PIXI.DisplayObjectContainer.prototype, 'visible', {
|
|||
*/
|
||||
PIXI.DisplayObjectContainer.prototype.addChild = function(child)
|
||||
{
|
||||
if(child.parent != undefined)
|
||||
if(child.parent)
|
||||
{
|
||||
|
||||
//// COULD BE THIS???
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue