diff options
author | Colin Snover <github.com@zetafleet.com> | 2011-01-09 15:58:23 -0600 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2011-01-09 15:58:23 -0600 |
commit | 80af46e8ffe8292e0af0537db6c7e89019e5edba (patch) | |
tree | 8f9cb8d9b108db3ada3665fb866f2392107d16c5 /src/queue.js | |
parent | 885d06c8ef906fa11d130d7d567c871d20ef9ba9 (diff) | |
download | jquery-80af46e8ffe8292e0af0537db6c7e89019e5edba.tar.gz jquery-80af46e8ffe8292e0af0537db6c7e89019e5edba.zip |
Fix jQuery.queue leaks empty queues.
Diffstat (limited to 'src/queue.js')
-rw-r--r-- | src/queue.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/queue.js b/src/queue.js index 5fb04df80..9e3e2fb52 100644 --- a/src/queue.js +++ b/src/queue.js @@ -46,6 +46,10 @@ jQuery.extend({ jQuery.dequeue(elem, type); }); } + + if ( !queue.length ) { + jQuery.removeData( elem, type + "queue", true ); + } } }); |