Browse Source

API now passes response to error handler when successTest fails

pull/4005/head
Jack Lukic 8 years ago
parent
commit
a977c331ea
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/behaviors/api.js

2
src/definitions/behaviors/api.js

@ -503,7 +503,7 @@ $.api = $.fn.api = function(parameters) {
module.request.resolveWith(context, [response, xhr]);
}
else {
module.request.rejectWith(context, [xhr, 'invalid']);
module.request.rejectWith(context, [xhr, 'invalid', response]);
}
}, timeLeft);
},

Loading…
Cancel
Save