Fix jQuery.queue leaks empty queues.

This commit is contained in:
Colin Snover 2011-01-09 15:58:23 -06:00
parent 885d06c8ef
commit 80af46e8ff

View file

@ -46,6 +46,10 @@ jQuery.extend({
jQuery.dequeue(elem, type); jQuery.dequeue(elem, type);
}); });
} }
if ( !queue.length ) {
jQuery.removeData( elem, type + "queue", true );
}
} }
}); });