From 5a964f8385cd329763e73a60adeb8acf18c5f802 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 20 Jan 2015 17:06:47 -0500 Subject: [PATCH] Fix API abort to also resolve promise --- src/definitions/behaviors/api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/definitions/behaviors/api.js b/src/definitions/behaviors/api.js index b5db943db..3c45675ba 100644 --- a/src/definitions/behaviors/api.js +++ b/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); } },