From: Alan Knowles Date: Tue, 4 May 2010 09:16:39 +0000 (+0800) Subject: builder.html.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=b221ba64dc4ceced78c09828f37bd522b81f3089 builder.html.js --- diff --git a/builder.html.js b/builder.html.js index 5db88c586..713a46b88 100644 --- a/builder.html.js +++ b/builder.html.js @@ -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;