diff options
author | John Resig <jeresig@gmail.com> | 2007-09-09 16:17:32 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-09-09 16:17:32 +0000 |
commit | 97fe63cb4826cbeb74bc0c3a72648f57ae0f0881 (patch) | |
tree | 73074e2433a84b3f82d5d895119f8a992e975f5b | |
parent | 7e9d8531544c00b80969b135b19bd2bfad686739 (diff) | |
download | jquery-97fe63cb4826cbeb74bc0c3a72648f57ae0f0881.tar.gz jquery-97fe63cb4826cbeb74bc0c3a72648f57ae0f0881.zip |
Moved the fx queueing over to the new expando system.
-rw-r--r-- | src/fx.js | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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({ |