git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.3.1 - Released 11/30/2010
[extjs.git]
/
src
/
widgets
/
tree
/
TreeEditor.js
diff --git
a/src/widgets/tree/TreeEditor.js
b/src/widgets/tree/TreeEditor.js
index
4de8802
..
3081717
100644
(file)
--- a/
src/widgets/tree/TreeEditor.js
+++ b/
src/widgets/tree/TreeEditor.js
@@
-1,8
+1,8
@@
/*!
/*!
- * Ext JS Library 3.
1.0
- * Copyright(c) 2006-20
09 Ext JS, LLC
- * licensing@
extjs
.com
- * http://www.
extjs
.com/license
+ * Ext JS Library 3.
3.1
+ * Copyright(c) 2006-20
10 Sencha Inc.
+ * licensing@
sencha
.com
+ * http://www.
sencha
.com/license
*/
/**
* @class Ext.tree.TreeEditor
*/
/**
* @class Ext.tree.TreeEditor
@@
-18,6
+18,7
@@
Ext.tree.TreeEditor = function(tree, fc, config){
fc = fc || {};
var field = fc.events ? fc : new Ext.form.TextField(fc);
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;
Ext.tree.TreeEditor.superclass.constructor.call(this, field, config);
this.tree = tree;
@@
-70,16
+71,18
@@
Ext.extend(Ext.tree.TreeEditor, Ext.Editor, {
initEditor : function(tree){
tree.on({
initEditor : function(tree){
tree.on({
- scope: this,
+ scope
: this,
beforeclick: this.beforeNodeClick,
beforeclick: this.beforeNodeClick,
- dblclick: this.onNodeDblClick
+ dblclick
: this.onNodeDblClick
});
});
+
this.on({
this.on({
- scope: this,
- complete: this.updateNode,
+ scope
: this,
+ complete
: this.updateNode,
beforestartedit: this.fitToTree,
beforestartedit: this.fitToTree,
- specialkey: this.onSpecialKey
+ specialkey
: this.onSpecialKey
});
});
+
this.on('startedit', this.bindScroll, this, {delay:10});
},
this.on('startedit', this.bindScroll, this, {delay:10});
},