Created
June 9, 2012 19:56
-
-
Save nathanpc/2902343 to your computer and use it in GitHub Desktop.
bb.init() Example
This file contains 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
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