Commit 97fe63cb authored by John Resig's avatar John Resig

Moved the fx queueing over to the new expando system.

parent 7e9d8531
...@@ -175,16 +175,13 @@ function queue( elem, type, array ) { ...@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment