builder.html.js
[app.Builder.js] / builder.html.js
index 70a1ed1..e5f47f9 100644 (file)
@@ -206,6 +206,13 @@ 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);
+                    continue;
+                }
+                
                 
                 if (xi.xtype && xi.xtype  == 'Array') {
                     cfg[pr] = xi.items;
@@ -273,7 +280,7 @@ Builder  = {
       // console.log(ftg.id);
         if (ftg.id && typeof(ftg.id) == 'string' && ftg.id.match(/builder-/)) {
             var nid = ftg.id.replace('builder-', '').replace('x-form-el-', '');
-            this.logMove( nid );
+            this[method]( nid );
             return true;
         }
         // needs fixing..
@@ -342,7 +349,11 @@ Builder  = {
         //console.log('no target in parents');
         
     },
-    logClick : function(
+    logClick : function(id) 
+    {
+         var bid = id.length ? 'builder-' + id : '';
+         console.log('{ "id" :  "' + bid + '"}');
+    },
     
     
     hover : function(e) {