I'm not sure how a DisplayObjectContainer has a null child, but I'm seeing it.
Cope. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@366 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -217,6 +217,10 @@ public class DisplayUtil
|
|||||||
private static function findInHierarchy0 (
|
private static function findInHierarchy0 (
|
||||||
obj :DisplayObject, name :String, shallow :Boolean, maxDepth :int, curDepth :int = 0) :Array
|
obj :DisplayObject, name :String, shallow :Boolean, maxDepth :int, curDepth :int = 0) :Array
|
||||||
{
|
{
|
||||||
|
if (obj == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var bestResult :Array;
|
var bestResult :Array;
|
||||||
if (obj.name == name) {
|
if (obj.name == name) {
|
||||||
if (shallow) {
|
if (shallow) {
|
||||||
|
|||||||
Reference in New Issue
Block a user