From 97fe63cb4826cbeb74bc0c3a72648f57ae0f0881 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sun, 9 Sep 2007 16:17:32 +0000 Subject: [PATCH] Moved the fx queueing over to the new expando system. --- src/fx.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/fx.js b/src/fx.js index c708b1a6..c45edc1e 100644 --- a/src/fx.js +++ b/src/fx.js @@ -175,16 +175,13 @@ function queue( elem, type, array ) { if ( !elem ) return; - if ( !elem.queue ) - elem.queue = {}; + var queue = jQuery.data( elem, type + "queue" ); - if ( !elem.queue[type] ) - elem.queue[type] = []; + if ( !queue || array ) + queue = jQuery.data( elem, type + "queue", + array ? jQuery.makeArray(array) : [] ); - if ( array ) - elem.queue[type] = jQuery.makeArray(array); - - return elem.queue[type]; + return queue; } jQuery.extend({