aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue.js
diff options
context:
space:
mode:
authorColin Snover <github.com@zetafleet.com>2011-01-09 15:58:23 -0600
committerColin Snover <github.com@zetafleet.com>2011-01-09 15:58:23 -0600
commit80af46e8ffe8292e0af0537db6c7e89019e5edba (patch)
tree8f9cb8d9b108db3ada3665fb866f2392107d16c5 /src/queue.js
parent885d06c8ef906fa11d130d7d567c871d20ef9ba9 (diff)
downloadjquery-80af46e8ffe8292e0af0537db6c7e89019e5edba.tar.gz
jquery-80af46e8ffe8292e0af0537db6c7e89019e5edba.zip
Fix jQuery.queue leaks empty queues.
Diffstat (limited to 'src/queue.js')
-rw-r--r--src/queue.js4
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 );
+ }
}
});