Skip to content
Permalink
Browse files

Fix jQuery.queue leaks empty queues.

  • Loading branch information...
csnover committed Jan 9, 2011
1 parent 885d06c commit 80af46e8ffe8292e0af0537db6c7e89019e5edba
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/queue.js
@@ -46,6 +46,10 @@ jQuery.extend({
jQuery.dequeue(elem, type);
});
}

if ( !queue.length ) {
jQuery.removeData( elem, type + "queue", true );
}
}
});

0 comments on commit 80af46e

Please sign in to comment.
You can’t perform that action at this time.