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, count = 1,
deferDataKey = type + "defer", deferDataKey = type + "defer",
queueDataKey = type + "queue", queueDataKey = type + "queue",
markDataKey = type + "mark"; markDataKey = type + "mark",
tmp;
function resolve() { function resolve() {
if ( !( --count ) ) { if ( !( --count ) ) {
defer.resolveWith( elements, [ elements ] ); defer.resolveWith( elements, [ elements ] );