Rebuild documentation and compressed files.
[roojs1] / roojs-ui-debug.js
index 0e7541b..07597fe 100644 (file)
@@ -36858,7 +36858,7 @@ Roo.XComponent = function(cfg) {
         'buildcomplete' : true
         
     });
-    
+    this.region = this.region || 'center'; // default..
     Roo.XComponent.register(this);
     this.modules = false;
     this.el = false; // where the layout goes..
@@ -36935,10 +36935,15 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
         
         el = el || false;
         
-        if (!el && typeof(m.parent) == 'string' && m.parent[0] == '#') {
+        if (!el && typeof(this.parent) == 'string' && this.parent[0] == '#') {
             // if parent is a '#.....' string, then let's use that..
+            var ename = this.parent.substr(1)
             this.parent = false;
-            el = Roo.get(m.substr(1));
+            el = Roo.get(ename);
+            if (!el) {
+                Roo.log("Warning - element can not be found :#" + ename );
+                return;
+            }
         }
         if (!this.parent) {
             
@@ -36961,6 +36966,8 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
                  })
             }
         }
+        
+        
             
         var tree = this.tree();
         tree.region = tree.region || this.region;