Fixed a bug that was occurring in the packed version of jQuery.

This commit is contained in:
John Resig 2007-09-10 19:43:58 +00:00
parent ce256312d5
commit a36771c83e

View file

@ -146,19 +146,6 @@ jQuery.fn.extend({
}); });
}, },
dequeue: function(type){
type = type || "fx";
return this.each(function(){
var q = queue(this, type);
q.shift();
if ( q.length )
q[0].apply( this );
});
},
stop: function(){ stop: function(){
var timers = jQuery.timers; var timers = jQuery.timers;
@ -171,18 +158,31 @@ jQuery.fn.extend({
}); });
function queue( elem, type, array ) { var queue = function( elem, type, array ) {
if ( !elem ) if ( !elem )
return; return;
var queue = jQuery.data( elem, type + "queue" ); var q = jQuery.data( elem, type + "queue" );
if ( !queue || array ) if ( !q || array )
queue = jQuery.data( elem, type + "queue", q = jQuery.data( elem, type + "queue",
array ? jQuery.makeArray(array) : [] ); array ? jQuery.makeArray(array) : [] );
return queue; return q;
} };
jQuery.fn.dequeue = function(type){
type = type || "fx";
return this.each(function(){
var q = queue(this, type);
q.shift();
if ( q.length )
q[0].apply( this );
});
};
jQuery.extend({ jQuery.extend({