In fact i need to access FileUploader.prototype.saveImage() method like the following code :
function FileUploader(object) {
this.checkInputs(object);
if (this.isImageSelected()) {
this.beforeInit(object);
this.prepareData();
this.uploadFile().success(function (response) {
var response = jQuery.parseJSON(response);
if (response.status != null && response.status) {
this.saveImage(response.data);
} else {
this.setError({
error_code: 3,
error_message: " error found "
});
}
});
}
}
FileUploader.prototype.saveImage = function (data) {
...
}
the previous call this.saveImage() return error
Uncaught TypeError: undefined is not a function
could someone help me please