Hoffi
Well-known member
Im just back into coding and upgrading my projects and starting to remove jQuery (Yeah, good!)
But I am stuck into extending an existing object.
This does not work, whats my mistake?
But I am stuck into extending an existing object.
This does not work, whats my mistake?
JavaScript:
var a = XF.extendObject(XF.AssetUpload, {
__backup: {
"ajaxResponse": "_afterAjaxResponseCv6Core"
},
ajaxResponse: function (data) {
console.log("Ajax");
this._afterAjaxResponseCv6Core(data);
if (data.path) {
console.log("inside Ajax");
}
}
});