To avoid choking on a null parent attribute.

These shouldn't have been included in this pull request, though; sorry
about that.


minimal . abstract . strategy
lucian games, llc




On Thu, Dec 26, 2013 at 7:42 PM, Chad Engler <notifications@github.com>wrote:

> In src/pixi/display/DisplayObjectContainer.js:
>
> > @@ -127,7 +127,7 @@ PIXI.DisplayObjectContainer.prototype.addChildAt = function(child, index)
> >  {
> >      if(index >= 0 && index <= this.children.length)
> >      {
> > -        if(child.parent !== undefined)
> > +        if(child.parent)
>
> What was the reasoning behind these changes?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/GoodBoyDigital/pixi.js/pull/455/files#r8562695>
> .
>