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:
@@ -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";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user