Fixes callback/callback-ios#43 - comment edits Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/55ba2f03 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/55ba2f03 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/55ba2f03
Branch: refs/heads/master Commit: 55ba2f03e933633e978675a2338259c4ea16f44f Parents: 3773dcd Author: Shazron Abdullah <shaz...@gmail.com> Authored: Thu Dec 15 16:40:39 2011 -0800 Committer: Shazron Abdullah <shaz...@gmail.com> Committed: Thu Dec 15 16:40:39 2011 -0800 ---------------------------------------------------------------------- PhoneGapLib/javascripts/core/capture.js | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/55ba2f03/PhoneGapLib/javascripts/core/capture.js ---------------------------------------------------------------------- diff --git a/PhoneGapLib/javascripts/core/capture.js b/PhoneGapLib/javascripts/core/capture.js index 89618a3..6539dbe 100644 --- a/PhoneGapLib/javascripts/core/capture.js +++ b/PhoneGapLib/javascripts/core/capture.js @@ -1,4 +1,3 @@ - if (!PhoneGap.hasResource("capture")) { PhoneGap.addResource("capture"); /** @@ -54,11 +53,10 @@ Capture.prototype.captureImage = function(successCallback, errorCallback, option }; /** - * Launch camera application for taking image(s). - * - * @param {Function} successCB - * @param {Function} errorCB - * @param {CaptureImageOptions} options + * Casts a PluginResult message property (array of objects) to an array of MediaFile objects + * (used in Objective-C) + * + * @param {PluginResult} pluginResult */ Capture.prototype._castMediaFile = function(pluginResult) { var mediaFiles = [];