projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
badad9e
)
builder.html.js
author
Alan Knowles
<alan@akbkhome.com>
Tue, 4 May 2010 09:16:39 +0000
(17:16 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 4 May 2010 09:16:39 +0000
(17:16 +0800)
builder.html.js
patch
|
blob
|
history
diff --git
a/builder.html.js
b/builder.html.js
index
5db88c5
..
713a46b
100644
(file)
--- 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;