Roo/XComponent.js
authorAlan Knowles <alan@roojs.com>
Wed, 9 Oct 2013 10:00:47 +0000 (18:00 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Oct 2013 10:00:47 +0000 (18:00 +0800)
Roo/XComponent.js

index d7c83d2..858990d 100644 (file)
@@ -379,7 +379,7 @@ Roo.apply(Roo.XComponent, {
        // elmodules (is a list of DOM based modules )
         Roo.each(this.elmodules, function(e) {
             mods.push(e);
-            if (this.topModule &&
+            if (!this.topModule &&
                 typeof(e.parent) == 'string' &&
                 e.parent.substring(0,1) == '#' &&
                 Roo.get(e.parent.substr(1))