Permalink
Browse files

Fixes #8353. Adds a catch block in resolveWith so that the finally bl…

…ock gets executed in IE7 and IE6.
  • Loading branch information...
1 parent e405419 commit cacea6f7e778d42cda56066a6b1da8fb163410cc @jaubourg jaubourg committed Feb 23, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core.js
View
@@ -843,6 +843,12 @@ jQuery.extend({
callbacks.shift().apply( context, args );
}
}
+ // We have to add a catch block for
+ // IE prior to 8 or else the finally
+ // block will never get executed
+ catch (e) {
+ throw e;
+ }
finally {
fired = [ context, args ];
firing = 0;

0 comments on commit cacea6f

Please sign in to comment.