From cacea6f7e778d42cda56066a6b1da8fb163410cc Mon Sep 17 00:00:00 2001 From: jaubourg Date: Wed, 23 Feb 2011 02:50:27 +0100 Subject: [PATCH] Fixes #8353. Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6. --- src/core.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core.js b/src/core.js index 31330e8f..87b24c80 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;