cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [2/2] js commit: Fix broken tests take 2
Date Thu, 19 Dec 2013 18:48:07 GMT
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 <agrieve@chromium.org>
Authored: Thu Dec 19 13:47:50 2013 -0500
Committer: Andrew Grieve <agrieve@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;


Mime
View raw message