From 3296eb6d8a7fb351cb36b1a737b94a8ea81ccc4b Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 4 Apr 2019 11:35:17 +0800 Subject: [PATCH] Changed Roo/tree/TreeNode.js --- Roo/tree/TreeNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roo/tree/TreeNode.js b/Roo/tree/TreeNode.js index e393fa05d3..a77c2faac1 100644 --- a/Roo/tree/TreeNode.js +++ b/Roo/tree/TreeNode.js @@ -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"){ -- 2.39.2