Fixes #8353. Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6.

This commit is contained in:
jaubourg 2011-02-23 02:50:27 +01:00
parent e405419fb7
commit cacea6f7e7

View File

@ -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;