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
+ 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
// 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
* @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