Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- "use strict";
- document.addEventListener( 'deviceready', onDeviceReady.bind( this ), false );
- function onDeviceReady() {
- // Handle the Cordova pause and resume events
- document.addEventListener( 'pause', onPause.bind( this ), false );
- document.addEventListener( 'resume', onResume.bind( this ), false );
- };
- function onPause() {
- // TODO: This application has been suspended. Save application state here.
- };
- function onResume() {
- // TODO: This application has been reactivated. Restore application state here.
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment