From 933183a53a65137cbfc9aef1fa280ea2846f1e7e Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 19 Mar 2008 07:37:41 +0000 Subject: [PATCH] Revert. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4976 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/ObjectMarshaller.as | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/as/com/threerings/util/ObjectMarshaller.as b/src/as/com/threerings/util/ObjectMarshaller.as index 172548d73..86a663c0b 100644 --- a/src/as/com/threerings/util/ObjectMarshaller.as +++ b/src/as/com/threerings/util/ObjectMarshaller.as @@ -166,7 +166,7 @@ public class ObjectMarshaller if (type == "number" || type == "string" || type == "boolean" ) { return null; // kosher! } - if (-1 != VALID_CLASSES.indexOf(ClassUtil.getClassName(value))) { + if (-1 != VALID_CLASSES.indexOf(ClassUtil.getClass(value))) { return null; // kosher } if (!Util.isPlainObject(value)) { @@ -187,8 +187,6 @@ public class ObjectMarshaller } /** Non-simple classes that we allow, as long as they are not subclassed. */ - protected static const VALID_CLASSES :Array = [ - "flash.utils.ByteArray", "flash.geom.Point", "flash.geom.Rectangle" - ]; + protected static const VALID_CLASSES :Array = [ ByteArray, Point, Rectangle ]; } }