Roo/XComponent.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 10 Jun 2011 03:43:11 +0000 (11:43 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 10 Jun 2011 03:43:11 +0000 (11:43 +0800)
Roo/XComponent.js

index 8a1b8b2..d21f93d 100644 (file)
@@ -268,8 +268,10 @@ Roo.apply(Roo.XComponent, {
             }
             
         }
-        this.topModule.modules.keySort('ASC',  cmp );
-        this.topModule.modules.each(addMod);
+        if (this.topModule) { 
+            this.topModule.modules.keySort('ASC',  cmp );
+            this.topModule.modules.each(addMod);
+        }
         return mods;
     },