tmp was global in the new fn.promise. Fixes #9147.

This commit is contained in:
timmywil 2011-05-06 12:10:16 -04:00
parent a257e07ae4
commit f7f8450041

View file

@ -148,7 +148,8 @@ jQuery.fn.extend({
count = 1,
deferDataKey = type + "defer",
queueDataKey = type + "queue",
markDataKey = type + "mark";
markDataKey = type + "mark",
tmp;
function resolve() {
if ( !( --count ) ) {
defer.resolveWith( elements, [ elements ] );