The 'constructor' property is not to be trusted.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4974 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -68,12 +68,12 @@ public class ClassUtil
|
||||
|
||||
public static function isSameClass (obj1 :Object, obj2 :Object) :Boolean
|
||||
{
|
||||
return (obj1.constructor == obj2.constructor);
|
||||
return (getClass(obj1) == getClass(obj2));
|
||||
}
|
||||
|
||||
public static function getClass (obj :Object) :Class
|
||||
{
|
||||
return Class(obj.constructor);
|
||||
return getClassByName(getQualifiedClassName(obj));
|
||||
}
|
||||
|
||||
public static function getClassByName (cname :String) :Class
|
||||
|
||||
Reference in New Issue
Block a user