Commit 80af46e8 authored by Colin Snover's avatar Colin Snover

Fix jQuery.queue leaks empty queues.

parent 885d06c8
...@@ -46,6 +46,10 @@ jQuery.extend({ ...@@ -46,6 +46,10 @@ jQuery.extend({
jQuery.dequeue(elem, type); jQuery.dequeue(elem, type);
}); });
} }
if ( !queue.length ) {
jQuery.removeData( elem, type + "queue", true );
}
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment