Changed Roo/tree/TreeNode.js
authorEdward <edward@roojs.com>
Thu, 4 Apr 2019 03:35:17 +0000 (11:35 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Apr 2019 03:35:17 +0000 (11:35 +0800)
Roo/tree/TreeNode.js

index e393fa0..a77c2fa 100644 (file)
@@ -301,7 +301,7 @@ Roo.extend(Roo.tree.TreeNode, Roo.data.Node, {
                 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"){