builder.html.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 4 May 2010 09:16:39 +0000 (17:16 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 4 May 2010 09:16:39 +0000 (17:16 +0800)
builder.html.js

index 5db88c5..713a46b 100644 (file)
@@ -206,6 +206,12 @@ Builder  = {
                 var pr = xi['*prop'];
                 this.munge(xi);
                 // if prop is an array - then it's items are really the value..
+                if (pr.match(/\[\]$/)) {
+                    pr = pr.replace(/\[\]$/, '');
+                    cfg[pr] = cfg[pr]  || [];
+                    cfg[pr].push(xi);
+                }
+                
                 
                 if (xi.xtype && xi.xtype  == 'Array') {
                     cfg[pr] = xi.items;