cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/6] js commit: CB-5606 WP8. ArrayBuffer does not exist in WP7
Date Thu, 24 Apr 2014 21:36:12 GMT
CB-5606 WP8. ArrayBuffer does not exist in WP7

github: close #65


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

Branch: refs/heads/browserify
Commit: 81f9a00ae27351350008bb84236635065cf124e8
Parents: a64a94c
Author: Edwin <edwin@service2media.com>
Authored: Tue Feb 25 10:32:29 2014 +0100
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Mar 28 14:26:11 2014 -0400

----------------------------------------------------------------------
 src/windowsphone/exec.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/81f9a00a/src/windowsphone/exec.js
----------------------------------------------------------------------
diff --git a/src/windowsphone/exec.js b/src/windowsphone/exec.js
index 5317459..548f410 100644
--- a/src/windowsphone/exec.js
+++ b/src/windowsphone/exec.js
@@ -48,7 +48,7 @@ module.exports = function(success, fail, service, action, args) {
     for(var n = 0; n < args.length; n++)
     {
         // special case for ArrayBuffer which could not be stringified out of the box
-        if(args[n] instanceof ArrayBuffer)
+        if(typeof ArrayBuffer !== "undefined" && args[n] instanceof ArrayBuffer)
         {
             args[n] = base64.fromArrayBuffer(args[n]);
         }


Mime
View raw message