cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/2] js commit: [ios] Change default bridge mode back to XHR_NO_PAYLOAD.
Date Tue, 02 Oct 2012 19:51:47 GMT
Updated Branches:
  refs/heads/master e799aef6a -> 27d9aedd5


[ios] Change default bridge mode back to XHR_NO_PAYLOAD.

Discovered that the recent change to returning YES in CDVURLProtocol
causes bundled messages to be received multiple times.


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

Branch: refs/heads/master
Commit: 27d9aedd5bf520f305e20fcf350da2eef244d53d
Parents: c51b7f8
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Oct 2 15:50:40 2012 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Oct 2 15:50:40 2012 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/27d9aedd/lib/ios/exec.js
----------------------------------------------------------------------
diff --git a/lib/ios/exec.js b/lib/ios/exec.js
index acd5873..6635c0b 100644
--- a/lib/ios/exec.js
+++ b/lib/ios/exec.js
@@ -38,7 +38,7 @@ var cordova = require('cordova'),
     // XHR mode does not work on iOS 4.2, so default to IFRAME_NAV for such devices.
     // XHR mode's main advantage is working around a bug in -webkit-scroll, which 
     // doesn't exist in 4.X devices anyways.
-    bridgeMode = navigator.userAgent.indexOf(' 4_') == -1 ? jsToNativeModes.XHR_OPTIONAL_PAYLOAD
: jsToNativeModes.IFRAME_NAV,
+    bridgeMode = navigator.userAgent.indexOf(' 4_') == -1 ? jsToNativeModes.XHR_NO_PAYLOAD
: jsToNativeModes.IFRAME_NAV,
     execIframe,
     execXhr;
 


Mime
View raw message