evaluateScripts([“ARRAY OF JS URLS”], function(success) {
// do work here once the JavaScript files have been evaluated
}]
App.onLaunch = function(options) { // 1 var javascriptFiles = [ `${options.BASEURL}js/Presenter.js` ]; // 2 evaluateScripts(javascriptFiles, function(success) { if(success) { var alert = createAlert("Hello World!", ""); Presenter.modalDialogPresenter(alert); } else { // 3 Handle the error CHALLENGE!//inside else statement of evaluateScripts. } }); } |
No comments:
Post a Comment