Array metadata should not be treated as a Hash
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 24 Feb 2010 21:27:50 +0000 (14:27 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 24 Feb 2010 21:36:13 +0000 (14:36 -0700)
imp/js/ViewPort.js

index 635d52e..76ed5a3 100644 (file)
@@ -1447,7 +1447,9 @@ ViewPort_Buffer = Class.create({
             this.usermdata = $H(md);
         } else {
             $H(md).each(function(pair) {
-                if (Object.isString(pair.value) || Object.isNumber(pair.value)) {
+                if (Object.isString(pair.value) ||
+                    Object.isNumber(pair.value) ||
+                    Object.isArray(pair.value)) {
                     this.usermdata.set(pair.key, pair.value);
                 } else {
                     var val = this.usermdata.get(pair.key);