You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2013/02/25 14:40:50 UTC

[29/50] js commit: [iOS] Fixing regression in exec [CB-2503]

[iOS] Fixing regression in exec [CB-2503]


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

Branch: refs/heads/multipart_plugin_result
Commit: 64a70f9bd62e37088a6d6161234b641577c20b31
Parents: 521bbd6
Author: Michal Mocny <mm...@gmail.com>
Authored: Wed Feb 20 16:52:44 2013 -0500
Committer: Michal Mocny <mm...@gmail.com>
Committed: Wed Feb 20 16:52:44 2013 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/64a70f9b/lib/ios/exec.js
----------------------------------------------------------------------
diff --git a/lib/ios/exec.js b/lib/ios/exec.js
index 8ad37d1..58e73d2 100644
--- a/lib/ios/exec.js
+++ b/lib/ios/exec.js
@@ -65,6 +65,9 @@ function shouldBundleCommandJson() {
 }
 
 function massageArgsJsToNative(args) {
+    if (!args || utils.typeName(args) != 'Array') {
+       return args;
+    }
     var encodeArrayBufferAs8bitString = function(ab) {
         return String.fromCharCode.apply(null, new Uint8Array(ab));
     };