Previously addChild was checking this: `if(child.parent != undefined)` but testing just for 'undefined' isn't enough, as the parent is set to 'null' in DisplayObject.js, so this condition fails and throws an error as it tries to removeChild from null.
1 parent eb1d1b5 commit a180e1dd2d12dc5d6c0a7b7942b715d340623a5c
@photonstorm photonstorm authored on 22 Dec 2013
Showing 1 changed file
View
src/pixi/display/DisplayObjectContainer.js