You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bc...@apache.org on 2012/03/23 06:14:15 UTC

git commit: [CB-375] Resume event should fire only when app is leaving background and coming to foreground, not during page load.

Updated Branches:
  refs/heads/master e50b7ef68 -> ee965b370


[CB-375] Resume event should fire only when app is leaving background and coming to foreground, not during page load.


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/ee965b37
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/ee965b37
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/ee965b37

Branch: refs/heads/master
Commit: ee965b37034f6f6ac9e19d778673c875d0b9ee2c
Parents: e50b7ef
Author: Bryce Curtis <cu...@gmail.com>
Authored: Fri Mar 23 00:13:55 2012 -0500
Committer: Bryce Curtis <cu...@gmail.com>
Committed: Fri Mar 23 00:13:55 2012 -0500

----------------------------------------------------------------------
 lib/scripts/bootstrap.js |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/ee965b37/lib/scripts/bootstrap.js
----------------------------------------------------------------------
diff --git a/lib/scripts/bootstrap.js b/lib/scripts/bootstrap.js
index 73875ee..5452561 100755
--- a/lib/scripts/bootstrap.js
+++ b/lib/scripts/bootstrap.js
@@ -47,9 +47,6 @@
                     // cordova info has been received from native side.
                     channel.join(function() {
                         channel.onDeviceReady.fire();
-
-                        // Fire the onresume event, since first one happens before JavaScript is loaded
-                        channel.onResume.fire();
                     }, channel.deviceReadyChannelsArray);
                     
                 }, [ channel.onDOMContentLoaded, channel.onNativeReady ]);