From 4442cb7bc4ac952bdc2f89acdd97dce51edbfdcf Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Wed, 7 May 2008 00:34:23 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/util/Util.as | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/as/com/threerings/util/Util.as b/src/as/com/threerings/util/Util.as index be71657e4..be0f647a5 100644 --- a/src/as/com/threerings/util/Util.as +++ b/src/as/com/threerings/util/Util.as @@ -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"; } /**