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;
// 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..
//console.log('no target in parents');
},
- logClick : function(
+ logClick : function(id)
+ {
+ var bid = id.length ? 'builder-' + id : '';
+ console.log('{ "id" : "' + bid + '"}');
+ },
hover : function(e) {