Roo/XComponent.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 1 Apr 2012 06:43:19 +0000 (14:43 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 1 Apr 2012 06:43:19 +0000 (14:43 +0800)
Roo/XComponent.js

index 38e964a..53373e7 100644 (file)
@@ -165,9 +165,10 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
             }
         }
         
-        
+               
+               // The 'tree' method is  '_tree now' 
             
-        var tree = this.tree();
+        var tree = this._tree ? this._tree() : this.tree();
         tree.region = tree.region || this.region;
         this.el = this.parent.el.addxtype(tree);
         this.fireEvent('built', this);