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/04/30 16:53:46 UTC

ios commit: [CB-2789] Remove CaptureOptions.mode support.

Updated Branches:
  refs/heads/master 37775b6d8 -> b3a255466


[CB-2789] Remove CaptureOptions.mode support.


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

Branch: refs/heads/master
Commit: b3a2554666e5aeae494eaadbd39f88c97ce79b84
Parents: 37775b6
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Apr 30 10:52:34 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Apr 30 10:52:34 2013 -0400

----------------------------------------------------------------------
 CordovaLib/Classes/CDVCapture.m |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/b3a25546/CordovaLib/Classes/CDVCapture.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVCapture.m b/CordovaLib/Classes/CDVCapture.m
index d89e3d3..6b7ed44 100644
--- a/CordovaLib/Classes/CDVCapture.m
+++ b/CordovaLib/Classes/CDVCapture.m
@@ -108,7 +108,6 @@
     if ([options isKindOfClass:[NSNull class]]) {
         options = [NSDictionary dictionary];
     }
-    NSString* mode = [options objectForKey:@"mode"];
 
     // options could contain limit and mode neither of which are supported at this time
     // taking more than one picture (limit) is only supported if provide own controls via cameraOverlayView property
@@ -139,7 +138,6 @@
         }*/
         // CDVImagePicker specific property
         pickerController.callbackId = callbackId;
-        pickerController.mimeType = mode;
 
         if ([self.viewController respondsToSelector:@selector(presentViewController:::)]) {
             [self.viewController presentViewController:pickerController animated:YES completion:nil];