aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-02-23 02:50:27 +0100
committerjaubourg <j@ubourg.net>2011-02-23 02:50:27 +0100
commitcacea6f7e778d42cda56066a6b1da8fb163410cc (patch)
tree23ec29d41d58370327a369d3e24cba0d386d5ca1
parente405419fb796030f7fee2bb8372eca158f85d849 (diff)
downloadjquery-cacea6f7e778d42cda56066a6b1da8fb163410cc.tar.gz
jquery-cacea6f7e778d42cda56066a6b1da8fb163410cc.zip
Fixes #8353. Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6.
-rw-r--r--src/core.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core.js b/src/core.js
index 31330e8f6..87b24c80a 100644
--- a/src/core.js
+++ b/src/core.js
@@ -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;