Fix jQuery.queue leaks empty queues.
This commit is contained in:
parent
885d06c8ef
commit
80af46e8ff
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ jQuery.extend({
|
|||
jQuery.dequeue(elem, type);
|
||||
});
|
||||
}
|
||||
|
||||
if ( !queue.length ) {
|
||||
jQuery.removeData( elem, type + "queue", true );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue