UNPKG

@titanium/turbo

Version:

Turbo is a variation of Titanium Alloy that adds some enhancements and customizations for rapid development.

16 lines (14 loc) 264 B
function openWindow(name) { var win = Alloy.createController(name).getView(); if (OS_ANDROID) { win.open(); } else { Alloy.Globals.navgroup.openWindow(win); } } function showInfo() { openWindow('info'); } function showMovies() { openWindow('movies'); }