]> source.dussan.org Git - jquery.git/commitdiff
Fix jQuery.queue leaks empty queues.
authorColin Snover <github.com@zetafleet.com>
Sun, 9 Jan 2011 21:58:23 +0000 (15:58 -0600)
committerColin Snover <github.com@zetafleet.com>
Sun, 9 Jan 2011 21:58:23 +0000 (15:58 -0600)
src/queue.js

index 5fb04df80b2d32a125072e7c5920fd9b0d2ac12c..9e3e2fb52c266102d23c45e47d050b02b368da8a 100644 (file)
@@ -46,6 +46,10 @@ jQuery.extend({
                                jQuery.dequeue(elem, type);
                        });
                }
+
+               if ( !queue.length ) {
+                       jQuery.removeData( elem, type + "queue", true );
+               }
        }
 });