You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/04/24 23:36:12 UTC
[2/6] js commit: CB-5606 WP8. ArrayBuffer does not exist in WP7
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 <ed...@service2media.com>
Authored: Tue Feb 25 10:32:29 2014 +0100
Committer: Andrew Grieve <ag...@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]);
}