From 96bdaf9f1fd190db43db7c2c89e7e35a04be4622 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 17 Apr 2009 01:06:00 +0000 Subject: [PATCH] Allow XML to be encoded. Let's try it and see if it works. Let us know Nathan. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5728 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/ObjectMarshaller.as | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/as/com/threerings/util/ObjectMarshaller.as b/src/as/com/threerings/util/ObjectMarshaller.as index da82ca8c9..6bdae23a1 100644 --- a/src/as/com/threerings/util/ObjectMarshaller.as +++ b/src/as/com/threerings/util/ObjectMarshaller.as @@ -196,10 +196,9 @@ public class ObjectMarshaller } // then, continue on with sub-property check (below) - } else { var type :String = typeof(value); - if (type == "number" || type == "string" || type == "boolean" ) { + if (type == "number" || type == "string" || type == "boolean" || type == "xml") { return null; // kosher! } if (-1 != VALID_CLASSES.indexOf(ClassUtil.getClassName(value))) {