incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [2/2] js commit: Fixing CB-1498
Date Thu, 20 Sep 2012 21:56:27 GMT
Fixing CB-1498


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

Branch: refs/heads/master
Commit: 327f8b1edabbbe921b3b7bc7b966087c9b4392ae
Parents: 24969fb
Author: Joe Bowser <bowserj@apache.org>
Authored: Thu Sep 20 14:55:27 2012 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Thu Sep 20 14:55:27 2012 -0700

----------------------------------------------------------------------
 lib/android/exec.js |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/327f8b1e/lib/android/exec.js
----------------------------------------------------------------------
diff --git a/lib/android/exec.js b/lib/android/exec.js
index 3b62fbd..2f68e54 100644
--- a/lib/android/exec.js
+++ b/lib/android/exec.js
@@ -71,13 +71,8 @@ function androidExec(success, fail, service, action, args) {
     if (jsToNativeBridgeMode === undefined) {
         androidExec.setJsToNativeBridgeMode(jsToNativeModes.PROMPT);
     }
-    if (nativeToJsBridgeMode === undefined) {
-        if (callback.isAvailable()) {
-            androidExec.setNativeToJsBridgeMode(nativeToJsModes.HANGING_GET);
-        } else {
-            androidExec.setNativeToJsBridgeMode(nativeToJsModes.POLLING);
-        }
-    }
+    androidExec.setNativeToJsBridgeMode(nativeToJsModes.ONLINE_EVENT);
+
     var callbackId = service + cordova.callbackId++,
         argsJson = JSON.stringify(args);
     if (success || fail) {


Mime
View raw message