You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2012/03/01 16:33:00 UTC
git commit: Making the capture API work correctly on Android
Updated Branches:
refs/heads/master 79f678e7e -> 534979e58
Making the capture API work correctly on Android
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/534979e5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/534979e5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/534979e5
Branch: refs/heads/master
Commit: 534979e58683a207ce4f9fc184659599c7639809
Parents: 79f678e
Author: macdonst <si...@gmail.com>
Authored: Thu Mar 1 10:32:53 2012 -0500
Committer: macdonst <si...@gmail.com>
Committed: Thu Mar 1 10:32:53 2012 -0500
----------------------------------------------------------------------
lib/plugin/capture.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/534979e5/lib/plugin/capture.js
----------------------------------------------------------------------
diff --git a/lib/plugin/capture.js b/lib/plugin/capture.js
index 782da57..e088ba6 100644
--- a/lib/plugin/capture.js
+++ b/lib/plugin/capture.js
@@ -10,16 +10,16 @@ var exec = require('cordova/exec'),
* @param {CaptureVideoOptions} options
*/
function _capture(type, successCallback, errorCallback, options) {
- var win = function(result) {
+ var win = function(pluginResult) {
var mediaFiles = [];
var i;
- for (i = 0; i < pluginResult.message.length; i++) {
+ for (i = 0; i < pluginResult.length; i++) {
var mediaFile = new MediaFile();
- mediaFile.name = pluginResult.message[i].name;
- mediaFile.fullPath = pluginResult.message[i].fullPath;
- mediaFile.type = pluginResult.message[i].type;
- mediaFile.lastModifiedDate = pluginResult.message[i].lastModifiedDate;
- mediaFile.size = pluginResult.message[i].size;
+ mediaFile.name = pluginResult[i].name;
+ mediaFile.fullPath = pluginResult[i].fullPath;
+ mediaFile.type = pluginResult[i].type;
+ mediaFile.lastModifiedDate = pluginResult[i].lastModifiedDate;
+ mediaFile.size = pluginResult[i].size;
mediaFiles.push(mediaFile);
}
successCallback(mediaFiles);