Rebuild documentation and compressed files.
[roojs1] / roojs-debug.js
index 61c1fee..cf7204a 100644 (file)
@@ -4025,7 +4025,22 @@ Roo.lib.Easing = {
  * Fork - LGPL
  * <script type="text/javascript">
  */
+
+
+// nasty IE9 hack - what a pile of crap that is..
+
+ if (typeof Range.prototype.createContextualFragment == "undefined") {
+    Range.prototype.createContextualFragment = function (html) {
+        var doc = window.document;
+        var container = doc.createElement("div");
+        container.innerHTML = html;
+        var frag = doc.createDocumentFragment(), n;
+        while ((n = container.firstChild)) {
+            frag.appendChild(n);
+        }
+        return frag;
+    };
+}
 
 /**
  * @class Roo.DomHelper
@@ -51303,7 +51318,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..
@@ -51380,10 +51395,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) {
             
@@ -51406,6 +51426,8 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
                  })
             }
         }
+        
+        
             
         var tree = this.tree();
         tree.region = tree.region || this.region;