You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/12/19 19:48:07 UTC

[2/2] js commit: Fix broken tests take 2

Fix broken tests take 2


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/2baecb55
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/2baecb55
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/2baecb55

Branch: refs/heads/master
Commit: 2baecb5581af56d54188675043a87fc7331afe0d
Parents: ed66d0a
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Dec 19 13:47:50 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Dec 19 13:47:50 2013 -0500

----------------------------------------------------------------------
 src/ios/exec.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/2baecb55/src/ios/exec.js
----------------------------------------------------------------------
diff --git a/src/ios/exec.js b/src/ios/exec.js
index 07f7c7d..e403145 100644
--- a/src/ios/exec.js
+++ b/src/ios/exec.js
@@ -60,10 +60,10 @@ function createExecIframe() {
 }
 
 function shouldBundleCommandJson() {
-    if (bridgeMode == jsToNativeModes.XHR_WITH_PAYLOAD) {
+    if (bridgeMode === jsToNativeModes.XHR_WITH_PAYLOAD) {
         return true;
     }
-    if (bridgeMode == jsToNativeModes.XHR_OPTIONAL_PAYLOAD || jsToNativeModes.HASH_OPTIONAL_PAYLOAD) {
+    if (bridgeMode === jsToNativeModes.XHR_OPTIONAL_PAYLOAD || bridgeMode === jsToNativeModes.HASH_OPTIONAL_PAYLOAD) {
         var payloadLength = 0;
         for (var i = 0; i < commandQueue.length; ++i) {
             payloadLength += commandQueue[i].length;