@@ -19,13 +19,13 @@ class UIImagePickerControllerDelegateImpl extends NSObject implements UIImagePic
19
19
private _keepAspectRatio : boolean ;
20
20
private _saveToGallery : boolean ;
21
21
22
- public initWithCallback ( callback : ( result ?) => void , errorCallback : ( result ?) => void ) : UIImagePickerControllerDelegateImpl {
22
+ public initWithCallback ( callback : ( result ?) => void , errorCallback : ( result ?) => void ) : UIImagePickerControllerDelegateImpl {
23
23
this . _callback = callback ;
24
24
this . _errorCallback = errorCallback ;
25
25
return this ;
26
26
}
27
27
28
- public initWithCallbackAndOptions ( callback : ( result ?) => void , errorCallback : ( result ?) => void , options ?) : UIImagePickerControllerDelegateImpl {
28
+ public initWithCallbackAndOptions ( callback : ( result ?) => void , errorCallback : ( result ?) => void , options ?) : UIImagePickerControllerDelegateImpl {
29
29
this . _callback = callback ;
30
30
this . _errorCallback = errorCallback ;
31
31
if ( options ) {
@@ -151,10 +151,10 @@ export let takePicture = function (options): Promise<any> {
151
151
resolve , reject , { width : reqWidth , height : reqHeight , keepAspectRatio : keepAspectRatio , saveToGallery : saveToGallery } ) ;
152
152
} else if ( saveToGallery ) {
153
153
listener = UIImagePickerControllerDelegateImpl . new ( ) . initWithCallbackAndOptions (
154
- resolve , reject , { saveToGallery : saveToGallery , keepAspectRatio : keepAspectRatio } ) ;
154
+ resolve , reject , { saveToGallery : saveToGallery , keepAspectRatio : keepAspectRatio } ) ;
155
155
}
156
156
else {
157
- listener = UIImagePickerControllerDelegateImpl . new ( ) . initWithCallback ( resolve , reject ) ;
157
+ listener = UIImagePickerControllerDelegateImpl . new ( ) . initWithCallback ( resolve , reject ) ;
158
158
}
159
159
imagePickerController . delegate = listener ;
160
160
0 commit comments