Update DisplayObjectContainer.js

Removed Undefined check as it it breaks pixi if an object is null
This commit is contained in:
Mat Groves 2013-12-23 18:09:00 +00:00
parent 98fe30b7e3
commit 0881e2bf66

View file

@ -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???