Skip to content

Instantly share code, notes, and snippets.

@nathanpc
Created June 9, 2012 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanpc/2902343 to your computer and use it in GitHub Desktop.
Save nathanpc/2902343 to your computer and use it in GitHub Desktop.
bb.init() Example
bb.init({
onscreenready: function (element, id) {
if (id == "main") {
// code to be executed before the "main" screen is loaded.
} else if (id == "add") {
// code to be executed before the "add" screen is loaded.
}
},
ondomready: function (element, id) {
if (id == "main") {
// code to be executed after the "main" screen is loaded.
} else if (id == "add") {
// code to be executed after the "add" screen is loaded.
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment