Moved the fx queueing over to the new expando system.
This commit is contained in:
parent
7e9d853154
commit
97fe63cb48
13
src/fx.js
13
src/fx.js
|
@ -175,16 +175,13 @@ function queue( elem, type, array ) {
|
||||||
if ( !elem )
|
if ( !elem )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( !elem.queue )
|
var queue = jQuery.data( elem, type + "queue" );
|
||||||
elem.queue = {};
|
|
||||||
|
|
||||||
if ( !elem.queue[type] )
|
if ( !queue || array )
|
||||||
elem.queue[type] = [];
|
queue = jQuery.data( elem, type + "queue",
|
||||||
|
array ? jQuery.makeArray(array) : [] );
|
||||||
|
|
||||||
if ( array )
|
return queue;
|
||||||
elem.queue[type] = jQuery.makeArray(array);
|
|
||||||
|
|
||||||
return elem.queue[type];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery.extend({
|
jQuery.extend({
|
||||||
|
|
Loading…
Reference in a new issue