- if (!obj.parent.modules) {
- obj.parent.modules = new Roo.util.MixedCollection(false, function(o) { return o.modKey });
- }
-
- obj.parent.modules.add(obj);
- */
- },
-
-
- buildModules : function(parent, onComplete)
- {
-
- var _this = this;
- var cmp = function(a,b) {
- return String(a).toUpperCase() > String(b).toUpperCase() ? 1 : -1;
-
- };
- if (!parent.modules) {
- return;
- }
- parent.modules.keySort('ASC', cmp );
- var mods = [];
-
-
- // add modules to their parents..
- var addMod = function(m) {
- // console.log(m.modKey);
-
- mods.push(m);
- if (m.module.modules) {
- m.module.modules.keySort('ASC', cmp );
- m.module.modules.each(addMod);
- }
- if (m.finalize) {
- m.finalize.name = m.name + " (clean up) ";
- mods.push(m.finalize);
+ obj.render = function()
+ {
+ if (!this.parent) {
+ Roo.log("Skip module, as parent does not exist");
+ Roo.log(this);
+ return;