Skip to content

Commit cacea6f

Browse files
committed
Fixes #8353. Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6.
1 parent e405419 commit cacea6f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,12 @@ jQuery.extend({
843843
callbacks.shift().apply( context, args );
844844
}
845845
}
846+
// We have to add a catch block for
847+
// IE prior to 8 or else the finally
848+
// block will never get executed
849+
catch (e) {
850+
throw e;
851+
}
846852
finally {
847853
fired = [ context, args ];
848854
firing = 0;

0 commit comments

Comments
 (0)