X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=1e7250f60d50355d0452ad099285fc2d357578a6;hb=c1279895f3f33cacc08e508c2409b587c0e6a5a2;hp=d77c818e63131af78aa55460714a19eadedcaa08;hpb=3663836b0180f3a73d96ec234d5d7010e5652a4b;p=jquery.git diff --git a/src/core.js b/src/core.js index d77c818..1e7250f 100644 --- a/src/core.js +++ b/src/core.js @@ -837,18 +837,14 @@ jQuery.extend({ // resolve with given context and args resolveWith: function( context, args ) { if ( !cancelled && !fired && !firing ) { + // make sure args are available (#8421) + args = args || []; firing = 1; try { while( callbacks[ 0 ] ) { 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;