diff --git a/croppic.js b/croppic.js index 6ab5d14..7c2bfc3 100644 --- a/croppic.js +++ b/croppic.js @@ -313,10 +313,10 @@ img.load(function(){ that.initCropper(); that.hideLoader(); - if (that.options.onAfterImgUpload) that.options.onAfterImgUpload.call(that); + if (that.options.onAfterImgUpload) that.options.onAfterImgUpload.call(that, response); }); - if (that.options.onAfterImgUpload) that.options.onAfterImgUpload.call(that); + if (that.options.onAfterImgUpload) that.options.onAfterImgUpload.call(that, response); }