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.1.1 - Released 02/08/2010
[extjs.git]
/
src
/
widgets
/
tree
/
TreePanel.js
diff --git
a/src/widgets/tree/TreePanel.js
b/src/widgets/tree/TreePanel.js
index
eeff011
..
9099ccf
100644
(file)
--- a/
src/widgets/tree/TreePanel.js
+++ b/
src/widgets/tree/TreePanel.js
@@
-1,6
+1,6
@@
/*!
/*!
- * Ext JS Library 3.1.
0
- * Copyright(c) 2006-20
09
Ext JS, LLC
+ * Ext JS Library 3.1.
1
+ * Copyright(c) 2006-20
10
Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
* licensing@extjs.com
* http://www.extjs.com/license
*/
@@
-525,12
+525,24
@@
new Ext.tree.TreePanel({
var uiP = node.attributes.uiProvider;
\r
node.ui = uiP ? new uiP(node) : new Ext.tree.RootTreeNodeUI(node);
\r
}
\r
var uiP = node.attributes.uiProvider;
\r
node.ui = uiP ? new uiP(node) : new Ext.tree.RootTreeNodeUI(node);
\r
}
\r
- if
(this.innerCt)
{
\r
- this.
innerCt.update(''
);
\r
- this.
afterRender
();
\r
+ if
(this.innerCt)
{
\r
+ this.
clearInnerCt(
);
\r
+ this.
renderRoot
();
\r
}
\r
return node;
\r
},
\r
}
\r
return node;
\r
},
\r
+
\r
+ clearInnerCt : function(){
\r
+ this.innerCt.update('');
\r
+ },
\r
+
\r
+ // private
\r
+ renderRoot : function(){
\r
+ this.root.render();
\r
+ if(!this.rootVisible){
\r
+ this.root.renderChildren();
\r
+ }
\r
+ },
\r
\r
/**
\r
* Gets a node in this tree by its id
\r
\r
/**
\r
* Gets a node in this tree by its id
\r
@@
-745,10
+757,7
@@
new Ext.tree.TreePanel({
// private
\r
afterRender : function(){
\r
Ext.tree.TreePanel.superclass.afterRender.call(this);
\r
// private
\r
afterRender : function(){
\r
Ext.tree.TreePanel.superclass.afterRender.call(this);
\r
- this.root.render();
\r
- if(!this.rootVisible){
\r
- this.root.renderChildren();
\r
- }
\r
+ this.renderRoot();
\r
},
\r
\r
beforeDestroy : function(){
\r
},
\r
\r
beforeDestroy : function(){
\r
@@
-900,6
+909,15
@@
new Ext.tree.TreePanel({
/**
\r
* @cfg {String} contentEl @hide
\r
*/
\r
/**
\r
* @cfg {String} contentEl @hide
\r
*/
\r
+ /**
\r
+ * @cfg {Mixed} data @hide
\r
+ */
\r
+ /**
\r
+ * @cfg {Mixed} tpl @hide
\r
+ */
\r
+ /**
\r
+ * @cfg {String} tplWriteMode @hide
\r
+ */
\r
/**
\r
* @cfg {String} disabledClass @hide
\r
*/
\r
/**
\r
* @cfg {String} disabledClass @hide
\r
*/
\r