From a4ef6c1041f32941a6e110175a100438a2f6c88a Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 18 May 2015 17:29:44 -0400 Subject: [PATCH] Fix context for beforeSend --- src/definitions/behaviors/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);