File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ class TOCropViewControllerDelegateImpl extends NSObject {
109109export class ImageCropper {
110110 public show ( image :imageSource . ImageSource , options ?:OptionsCommon ) :Thenable < Result > {
111111 // console.log("ImageCropper.show");
112+ let _that = this ;
112113 return new Promise < Result > ( ( resolve , reject ) => {
113114 _options = options ;
114115 if ( image . ios ) {
@@ -124,7 +125,7 @@ export class ImageCropper{
124125 page . presentViewControllerAnimatedCompletion ( viewController , true , function ( ) {
125126 //Set Fixed Crop Size
126127 if ( _options && _options . width && _options . height ) {
127- var gcd = this . _gcd ( _options . width , _options . height ) ;
128+ var gcd = _that . _gcd ( _options . width , _options . height ) ;
128129
129130 viewController . toolbar . clampButtonHidden = true ;
130131 // viewController.toolbar.setNeedsLayout();
You can’t perform that action at this time.
0 commit comments