Browse Source

Fix context for beforeSend

pull/2300/head
jlukic 9 years ago
parent
commit
a4ef6c1041
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/behaviors/api.js

2
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);

Loading…
Cancel
Save