You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/04/24 23:36:14 UTC

[4/6] js commit: CB-6419 pause and resume events should be fired without a timeout

CB-6419 pause and resume events should be fired without a timeout


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/b0a18f81
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/b0a18f81
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/b0a18f81

Branch: refs/heads/browserify
Commit: b0a18f81c3237a36b4a5c92a0ebc68b8ed9e8682
Parents: 53eae16
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Apr 8 14:50:12 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Apr 8 14:50:12 2014 -0700

----------------------------------------------------------------------
 src/windows8/platform.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/b0a18f81/src/windows8/platform.js
----------------------------------------------------------------------
diff --git a/src/windows8/platform.js b/src/windows8/platform.js
index 67a564c..fc82161 100755
--- a/src/windows8/platform.js
+++ b/src/windows8/platform.js
@@ -33,11 +33,11 @@ module.exports = {
         var onWinJSReady = function () {
             var app = WinJS.Application;
             var checkpointHandler = function checkpointHandler() {
-                cordova.fireDocumentEvent('pause');
+                cordova.fireDocumentEvent('pause',null,true);
             };
 
             var resumingHandler = function resumingHandler() {
-                cordova.fireDocumentEvent('resume');
+                cordova.fireDocumentEvent('resume',null,true);
             };
 
             app.addEventListener("checkpoint", checkpointHandler);
@@ -52,8 +52,6 @@ module.exports = {
             scriptElem.src = "//Microsoft.WinJS.1.0/js/base.js";
             scriptElem.addEventListener("load", onWinJSReady);
             document.head.appendChild(scriptElem);
-
-            console.log("added WinJS ... ");
         }
         else {
             onWinJSReady();