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 2012/08/24 23:57:39 UTC

[48/50] [abbrv] js commit: [ios] Remove check for iOSVCAddress in setJsToNativeBridgeMode

[ios] Remove check for iOSVCAddress in setJsToNativeBridgeMode

The check was running too early and failing. It is excessive anyways, so
just removed it.


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

Branch: refs/heads/master
Commit: ae75129fd4d522def98ccc062cf2506d1999a68d
Parents: 775c526
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Aug 20 21:29:12 2012 -0400
Committer: Anis Kadri <an...@gmail.com>
Committed: Fri Aug 24 13:49:58 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/ae75129f/lib/ios/exec.js
----------------------------------------------------------------------
diff --git a/lib/ios/exec.js b/lib/ios/exec.js
index ffe8710..0bb388f 100644
--- a/lib/ios/exec.js
+++ b/lib/ios/exec.js
@@ -115,10 +115,6 @@ iOSExec.setJsToNativeBridgeMode = function(mode) {
         execIframe.parentNode.removeChild(execIframe);
         execIframe = null;
     }
-    if (mode && !cordova.iOSVCAddr) {
-        alert('ViewController not correctly initialized for XHR mode.');
-        mode = 0;
-    }
     bridgeMode = mode;
 };