if (!parent.modules) {
return;
}
- parent.modules.keySort('ASC', cmp );
+
+ // make a flat list in order of modules to build.
var mods = [];
}
}
-
+ parent.modules.keySort('ASC', cmp );
parent.modules.each(addMod);
//this.allmods = mods;
//console.log(mods);
//return;
if (!mods.length) {
- if (onComplete) onComplete();
+ if (onComplete) {
+ onComplete.call(this);
+ }
return;
}
// flash it up as modal - so we store the mask!?