Ext.tree.TreeEditor = function(tree, fc, config){
fc = fc || {};
var field = fc.events ? fc : new Ext.form.TextField(fc);
+
Ext.tree.TreeEditor.superclass.constructor.call(this, field, config);
this.tree = tree;
initEditor : function(tree){
tree.on({
- scope: this,
+ scope : this,
beforeclick: this.beforeNodeClick,
- dblclick: this.onNodeDblClick
+ dblclick : this.onNodeDblClick
});
+
this.on({
- scope: this,
- complete: this.updateNode,
+ scope : this,
+ complete : this.updateNode,
beforestartedit: this.fitToTree,
- specialkey: this.onSpecialKey
+ specialkey : this.onSpecialKey
});
+
this.on('startedit', this.bindScroll, this, {delay:10});
},