Roo/XComponent.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 6 Jun 2012 03:44:36 +0000 (11:44 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 6 Jun 2012 03:44:36 +0000 (11:44 +0800)
Roo/XComponent.js

index 04b441e..35401e2 100644 (file)
@@ -165,7 +165,11 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
             }
         }
         
-               
+               if (!this.parent.el) {
+                       // probably an old style ctor, which has been disabled.
+                       return;
+                       
+               }
                // The 'tree' method is  '_tree now' 
             
         var tree = this._tree ? this._tree() : this.tree();