You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/05/11 01:44:40 UTC
js commit: Related to CB-683,
route pause/resume events via fireDocumentEvent
Updated Branches:
refs/heads/master facaa38a0 -> 9c1c3629b
Related to CB-683, route pause/resume events via fireDocumentEvent
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/9c1c3629
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/9c1c3629
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/9c1c3629
Branch: refs/heads/master
Commit: 9c1c3629b24ba5c427d47339c78f1bde6ff60406
Parents: facaa38
Author: Fil Maj <ma...@gmail.com>
Authored: Thu May 10 16:47:50 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu May 10 16:47:50 2012 -0700
----------------------------------------------------------------------
lib/wp7/plugin/wp7/CordovaCommandResult.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/9c1c3629/lib/wp7/plugin/wp7/CordovaCommandResult.js
----------------------------------------------------------------------
diff --git a/lib/wp7/plugin/wp7/CordovaCommandResult.js b/lib/wp7/plugin/wp7/CordovaCommandResult.js
index 7a236d6..e10fd6e 100644
--- a/lib/wp7/plugin/wp7/CordovaCommandResult.js
+++ b/lib/wp7/plugin/wp7/CordovaCommandResult.js
@@ -10,11 +10,11 @@ module.exports = function(status,callbackId,args,cast) {
return "true";
}
else if(status === "resume") {
- channel.onResume.fire();
+ cordova.fireDocumentEvent('resume');
return "true";
}
else if(status === "pause") {
- channel.onPause.fire();
+ cordova.fireDocumentEvent('pause');
return "true";
}
@@ -49,4 +49,4 @@ module.exports = function(status,callbackId,args,cast) {
else {
cordova.callbackError(callbackId,parsedArgs,cast);
}
-};
\ No newline at end of file
+};