diff --git a/src/definitions/behaviors/api.js b/src/definitions/behaviors/api.js index dd7083601..3ee0f6744 100644 --- a/src/definitions/behaviors/api.js +++ b/src/definitions/behaviors/api.js @@ -579,7 +579,7 @@ $.api = $.fn.api = function(parameters) { var runSettings ; - runSettings = settings.beforeSend.call($module, settings); + runSettings = settings.beforeSend.call(context, settings); if(runSettings) { if(runSettings.success !== undefined) { module.debug('Legacy success callback detected', runSettings);