projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #5820 - Load times of country tree (edit press release)
[roojs1]
/
Roo
/
tree
/
TreeNode.js
diff --git
a/Roo/tree/TreeNode.js
b/Roo/tree/TreeNode.js
index
e393fa0
..
e797d60
100644
(file)
--- a/
Roo/tree/TreeNode.js
+++ b/
Roo/tree/TreeNode.js
@@
-301,7
+301,8
@@
Roo.extend(Roo.tree.TreeNode, Roo.data.Node, {
this.renderChildren();
}
this.expanded = true;
this.renderChildren();
}
this.expanded = true;
- if(!this.isHiddenRoot() && (this.getOwnerTree().animate && anim !== false) || anim){
+
+ if(!this.isHiddenRoot() && (this.getOwnerTree() && this.getOwnerTree().animate && anim !== false) || anim){
this.ui.animExpand(function(){
this.fireEvent("expand", this);
if(typeof callback == "function"){
this.ui.animExpand(function(){
this.fireEvent("expand", this);
if(typeof callback == "function"){