Browse Source

Fix API abort to also resolve promise

pull/1698/merge
jlukic 9 years ago
parent
commit
5a964f8385
1 changed files with 1 additions and 0 deletions
  1. 1
      src/definitions/behaviors/api.js

1
src/definitions/behaviors/api.js

@ -572,6 +572,7 @@ $.api = $.fn.api = function(parameters) {
if( xhr && xhr.state() !== 'resolved') {
module.debug('Cancelling API request');
xhr.abort();
module.request.rejectWith(settings.apiSettings);
}
},

Loading…
Cancel
Save