Try a different way of assessing the plainness of an object that doesn't rely on describeType(). This could potentially break games and such in somewhat non-obvious ways. I've tested a number of things locally but the next step is www.dev.whirled.com.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5044 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Par Winzell
2008-05-07 00:34:23 +00:00
parent 430b23a5bb
commit 4442cb7bc4
+2 -3
View File
@@ -22,8 +22,7 @@
package com.threerings.util {
import flash.utils.ByteArray;
import flash.utils.describeType; // function import
import flash.utils.getQualifiedClassName;
public class Util
{
@@ -65,7 +64,7 @@ public class Util
*/
public static function isPlainObject (obj :Object) :Boolean
{
return (obj != null) && ("Object" == describeType(obj).@name.toString());
return getQualifiedClassName(obj) == "Object";
}
/**