cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/3] js commit: Revert "Fix broken tests take 2"
Date Fri, 20 Dec 2013 04:06:58 GMT
Updated Branches:
  refs/heads/master 2baecb558 -> cdb7c050e


Revert "Fix broken tests take 2"

This reverts commit 2baecb5581af56d54188675043a87fc7331afe0d.


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

Branch: refs/heads/master
Commit: 3fc7ee4972546b84193a6acabe91b1790901144c
Parents: 2baecb5
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Dec 19 22:55:38 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Dec 19 22:55:38 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/3fc7ee49/src/ios/exec.js
----------------------------------------------------------------------
diff --git a/src/ios/exec.js b/src/ios/exec.js
index e403145..07f7c7d 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 || bridgeMode === jsToNativeModes.HASH_OPTIONAL_PAYLOAD)
{
+    if (bridgeMode == jsToNativeModes.XHR_OPTIONAL_PAYLOAD || jsToNativeModes.HASH_OPTIONAL_PAYLOAD)
{
         var payloadLength = 0;
         for (var i = 0; i < commandQueue.length; ++i) {
             payloadLength += commandQueue[i].length;


Mime
View raw message