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

1.7/enhancement_8685
timmywil 2011-05-06 12:10:16 -04:00
parent a257e07ae4
commit f7f8450041
1 changed files with 2 additions and 1 deletions

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 ] );