$.__views.index = require("testmod").createWindow ? require("testmod").createWindow({
backgroundColor: "#fff",
fullscreen: false,
exitOnClose: true,
id: "index"
}) : Ti.UI.createWindow({
backgroundColor: "#fff",
fullscreen: false,
exitOnClose: true,
id: "index"
});
I'm sure I could optimize this more than I have here. Still, the change is going to make for rather different code generated if you do or don't use the default module attribute. I hesitate to implement such a minor productivity enhancement that comes with the potential for such results. Thoughts? Suggestions?