incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: Fixes CB-255 - iOS: a parameter with value 'null' is not passed to 'arguments' array
Date Mon, 12 Mar 2012 19:26:17 GMT
Updated Branches:
  refs/heads/master 71a542e8d -> f47a9a083


Fixes CB-255 - iOS: a parameter with value 'null' is not passed to 'arguments' array


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/f47a9a08
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/f47a9a08
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/f47a9a08

Branch: refs/heads/master
Commit: f47a9a083afc5e7dda201723da5bd8dafe56621f
Parents: 71a542e
Author: Shazron Abdullah <shazron@apache.org>
Authored: Mon Mar 12 12:26:09 2012 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Mon Mar 12 12:26:09 2012 -0700

----------------------------------------------------------------------
 CordovaLib/javascripts/core/cordova.js.base |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/f47a9a08/CordovaLib/javascripts/core/cordova.js.base
----------------------------------------------------------------------
diff --git a/CordovaLib/javascripts/core/cordova.js.base b/CordovaLib/javascripts/core/cordova.js.base
index 98be37b..be1cbdf 100644
--- a/CordovaLib/javascripts/core/cordova.js.base
+++ b/CordovaLib/javascripts/core/cordova.js.base
@@ -220,8 +220,8 @@ Cordova.exec = function() {
 
     for (var i = 0; i < actionArgs.length; ++i) {
         var arg = actionArgs[i];
-        if (arg == undefined || arg == null) {
-            continue;
+        if (arg == undefined || arg == null) { // nulls are pushed to the args now (becomes
NSNull)
+            command.arguments.push(arg);
         } else if (typeof(arg) == 'object') {
             command.options = arg;
         } else {


Mime
View raw message