Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Sep 10, 2007
1 parent ce25631 commit a36771c83e8a8317b70ff2372cbbefd87e4d9dce
Showing with 19 additions and 19 deletions.
  1. +19 −19 src/fx.js
@@ -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(){
var timers = jQuery.timers;

@@ -171,18 +158,31 @@ jQuery.fn.extend({

});

function queue( elem, type, array ) {
var queue = function( elem, type, array ) {
if ( !elem )
return;

var queue = jQuery.data( elem, type + "queue" );
var q = jQuery.data( elem, type + "queue" );

if ( !queue || array )
queue = jQuery.data( elem, type + "queue",
if ( !q || array )
q = jQuery.data( elem, type + "queue",
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({

0 comments on commit a36771c

Please sign in to comment.
You can’t perform that action at this time.