File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export class ImagePicker extends data_observable.Observable {
8080 const imagePickerControllerDelegate = ImagePickerControllerDelegate . new ( ) ;
8181 imagePickerControllerDelegate . _resolve = resolve ;
8282 imagePickerControllerDelegate . _reject = reject ;
83-
83+
8484 this . _imagePickerController . delegate = imagePickerControllerDelegate ;
8585
8686 this . hostController . presentViewControllerAnimatedCompletion ( this . _imagePickerController , true , null ) ;
@@ -95,7 +95,7 @@ export class ImagePickerControllerDelegate extends NSObject implements QBImagePi
9595 qb_imagePickerControllerDidCancel ?( imagePickerController : QBImagePickerController ) : void {
9696 imagePickerController . dismissViewControllerAnimatedCompletion ( true , null ) ;
9797 this . _reject ( new Error ( "Selection canceled." ) ) ;
98-
98+
9999 this . deRegisterFromGlobal ( ) ;
100100 }
101101
@@ -136,10 +136,10 @@ export class ImagePickerControllerDelegate extends NSObject implements QBImagePi
136136 }
137137
138138 public static ObjCProtocols = [ QBImagePickerControllerDelegate ] ;
139-
139+
140140 static new ( ) : ImagePickerControllerDelegate {
141141 const instance = < ImagePickerControllerDelegate > super . new ( ) ; // calls new() on the NSObject
142-
142+
143143 instance . registerToGlobal ( ) ;
144144
145145 return instance ;
You can’t perform that action at this time.
0 commit comments