Created
August 27, 2014 00:26
-
-
Save dprotopopov/d9070dd69f6c3456f54b to your computer and use it in GitHub Desktop.
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
(function (express) { | |
document.addEventListener("deviceready", onDeviceReady, false); | |
function onDeviceReady() { | |
navigator.splashscreen.hide(); | |
document.addEventListener("backbutton", exitApp, false); | |
} | |
function exitApp() { | |
switch (express.devices.real().platform) { | |
case "tizen": | |
tizen.application.getCurrentApplication().exit(); | |
break; | |
case "android": | |
navigator.app.exitApp(); | |
break; | |
case "win8": | |
window.external.Notify("DevExpress.ExitApp"); | |
break; | |
} | |
} | |
})(DevExpress); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment