]> source.dussan.org Git - jquery.git/commitdiff
Add catch block to try/finally in deferred. Fixes #9033. Test case needed.
authortimmywil <tim.willison@thisismedium.com>
Tue, 7 Jun 2011 00:13:50 +0000 (20:13 -0400)
committertimmywil <tim.willison@thisismedium.com>
Wed, 8 Jun 2011 00:55:17 +0000 (20:55 -0400)
src/deferred.js

index 5cc5fb5be951dfbf346637b8b13fa6da9ff67cf9..3d53344e384c77dc66ddf87ffac003c287021686 100644 (file)
@@ -58,8 +58,9 @@ jQuery.extend({
                                                        while( callbacks[ 0 ] ) {
                                                                callbacks.shift().apply( context, args );
                                                        }
-                                               }
-                                               finally {
+                                               } catch( e ) {
+                                                       throw e;
+                                               } finally {
                                                        fired = [ context, args ];
                                                        firing = 0;
                                                }