cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [4/37] js commit: Add echoArrayBuffer to the echo plugin
Date Tue, 29 Jan 2013 19:07:52 GMT
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 <braden@chromium.org>
Authored: Fri Jan 18 12:31:56 2013 -0500
Committer: Braden Shepherdson <braden@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]);
 };
 


Mime
View raw message