app/controllers/menu.js
/// Changes the menu when users change their connection status
Changes the menu when users change their connection status
Changes the menu when users change their connection status
function onNetworkChange(e){
    _.each(itemControllers, function(_item){
        Ti.API.info("Registering "+_item.getId());
        if(Alloy.Globals.offlineControllers.indexOf(_item.getId())<0){
            e.online ? _item.enable() : _item.disable();
        }
    });
}
function onNetworkChange ( e ) { _ . each ( itemControllers , function ( _item ) { Ti . API . info ( "Registering " + _item . getId ( ) ) ; if ( Alloy . Globals . offlineControllers . indexOf ( _item . getId ( ) ) < 0 ) { e . online ? _item . enable ( ) : _item . disable ( ) ; } } ) ; }
Changes the menu when users change their connection status
Changes the menu when users change their connection status