You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/01/29 20:07:52 UTC

[4/37] js commit: Add echoArrayBuffer to the echo plugin

Add echoArrayBuffer to the echo plugin


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

Branch: refs/heads/symbolmapping
Commit: f017682945743c934fe46b21d86ad62379e9da4d
Parents: b1634b6
Author: Braden Shepherdson <br...@chromium.org>
Authored: Fri Jan 18 12:31:56 2013 -0500
Committer: Braden Shepherdson <br...@chromium.org>
Committed: Fri Jan 18 12:31:56 2013 -0500

----------------------------------------------------------------------
 lib/common/plugin/echo.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/f0176829/lib/common/plugin/echo.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/echo.js b/lib/common/plugin/echo.js
index 5706f4c..87a495f 100644
--- a/lib/common/plugin/echo.js
+++ b/lib/common/plugin/echo.js
@@ -30,6 +30,9 @@ var exec = require('cordova/exec');
  */
 module.exports = function(successCallback, errorCallback, message, forceAsync) {
     var action = forceAsync ? 'echoAsync' : 'echo';
+    if (!forceAsync && message.constructor == ArrayBuffer) {
+        action = 'echoArrayBuffer';
+    }
     exec(successCallback, errorCallback, "Echo", action, [message]);
 };