Skip to content
Permalink
Browse files
Revert "reverted global change to cordova object, added temp? 'activa…
…te' event to windows platform"

This reverts commit 0d77ab8.
  • Loading branch information
purplecabbage committed May 6, 2015
1 parent 0d77ab8 commit a2eb3596d9f6e80cd580696844bc57cd0d921c93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
@@ -101,6 +101,7 @@ var cordova = {
version:PLATFORM_VERSION_BUILD_LABEL,
platformVersion:PLATFORM_VERSION_BUILD_LABEL,
platformId:platform.id,
env:{},
/**
* Methods to add/remove your own addEventListener hijacking on document + window.
*/
@@ -42,15 +42,9 @@ module.exports = {
cordova.fireDocumentEvent('resume',null,true);
};

// NOTE: this is NOT documented, and subject to change in
// the VERY near future
var activationHandler = function activationHandler(e) {
channel.onCordovaReady.subscribe(function() {
// force async
setTimeout(function(){
cordova.fireDocumentEvent('activate',e.detail,true);
},0);
});
cordova.env = (cordova.env || { });
cordova.env.args = e.detail;
};

app.addEventListener("checkpoint", checkpointHandler);

0 comments on commit a2eb359

Please sign in to comment.