From b221ba64dc4ceced78c09828f37bd522b81f3089 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 4 May 2010 17:16:39 +0800 Subject: [PATCH] builder.html.js --- builder.html.js | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.2