} else {
ec[id] = v;
}
-
+
_this.grid.setSourceFromNode(ec);
var bp = Pman.Tab.BuilderView.panel;
if (n == 'xtype') {
return;
}
+ if (n[0] == '!') {
+ Roo.MesssageBox.alert("Error", "Error, you can not do this to listeners");
+ return;
+ }
if (n[0] == '|') {
-
var val = _this.grid.currentNode.elConfig[n];
delete _this.grid.currentNode.elConfig[n];
_this.grid.currentNode.elConfig[ n.substring(1)] = val;
return;
}
if (n[0] == '!') {
- delete _this.grid.currentNode.elConfig.listeners[n.substring(1)];
+ try{
+ delete _this.grid.currentNode.elConfig.listeners[n.substring(1)];
+ }catch(err){
+ delete _this.grid.currentNode.elConfig[n];
+ Roo.log(err);
+ }
+
} else {
delete _this.grid.currentNode.elConfig[n];
}
// show a dialog to select property??
// or should we add a line and get clever with pulldowns..
var ec = _this.grid.currentNode.elConfig;
+
Pman.Dialog.BuilderProp.show({
xtype : ec.xtype || '',
xns: ec['|xns'] || '',