From 34d2833580c37c0fb73abaa704ce54d9ed927a7b Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Sat, 6 Dec 2008 00:39:05 +0000 Subject: [PATCH] Enums can safely be used as Dictionary keys, and should therefore pass the isSimple() test. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5581 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/HashMap.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/util/HashMap.as b/src/as/com/threerings/util/HashMap.as index e832c4557..7a7cc6a30 100644 --- a/src/as/com/threerings/util/HashMap.as +++ b/src/as/com/threerings/util/HashMap.as @@ -316,7 +316,8 @@ public class HashMap */ protected function isSimple (key :Object) :Boolean { - return (key == null) || (key is String) || (key is Number) || (key is Boolean); + return (key == null) || (key is String) || (key is Number) || (key is Boolean) || + (key is Enum); } /**