Created
June 15, 2011 09:04
-
-
Save feedhenry-gists/1026753 to your computer and use it in GitHub Desktop.
HTML and iScroll Tabbed UI Template App Internals Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// what to do when app is loaded and ready to go | |
$fh.ready(function () { | |
... | |
// Make act call to get latest config from server | |
$fh.act({ | |
act: 'getConfig' | |
}, function (result) { | |
... | |
// Got config from server, so overwrite our local config | |
... | |
config = result; | |
... | |
fh_app.init(); | |
}, function (code, errorprops, params) { | |
... | |
// use default config, which is already assigned in config.js | |
... | |
fh_app.init(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment