Roo/XComponent.js
authorEdward <edward@roojs.com>
Fri, 13 Feb 2015 06:21:16 +0000 (14:21 +0800)
committerEdward <edward@roojs.com>
Fri, 13 Feb 2015 06:21:16 +0000 (14:21 +0800)
Roo/XComponent.js

index 3930de1..fc2279c 100644 (file)
@@ -235,11 +235,11 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
             }
         }
         
-               if (!this.parent.el) {
-                       // probably an old style ctor, which has been disabled.
-                       return;
-                       
-               }
+        if (!this.parent.el) {
+                // probably an old style ctor, which has been disabled.
+                return;
+
+        }
                // The 'tree' method is  '_tree now' 
             
         tree.region = tree.region || this.region;
@@ -254,7 +254,7 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
         
         this.panel = this.el;
         this.layout = this.panel.layout;
-               this.parentLayout = this.parent.layout  || false;  
+        this.parentLayout = this.parent.layout  || false;  
          
     }