Roo/tree/TreeNodeUI.js
authorEdward <edward@roojs.com>
Thu, 4 Apr 2019 04:46:31 +0000 (12:46 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Apr 2019 04:46:31 +0000 (12:46 +0800)
Roo/tree/TreeNodeUI.js

index 035a485..5bf8caf 100644 (file)
@@ -383,7 +383,7 @@ Roo.tree.TreeNodeUI.prototype = {
         // add some indent caching, this helps performance when rendering a large tree
         this.indentMarkup = n.parentNode ? n.parentNode.ui.getChildIndent() : '';
         var t = n.getOwnerTree();
-        var txt = t.renderer ? t.renderer(n.attributes) : Roo.util.Format.htmlEncode(n.text);
+        var txt = t && t.renderer ? t.renderer(n.attributes) : Roo.util.Format.htmlEncode(n.text);
         if (typeof(n.attributes.html) != 'undefined') {
             txt = n.attributes.html;
         }