Effects: Fixed queueing of class animations. Fixes #6748 - animateClass broken in 1.8.7.

This commit is contained in:
Scott González 2010-12-14 09:02:00 -05:00
parent b475ae74df
commit cba92afe25

View File

@ -231,8 +231,7 @@ $.effects.animateClass = function(value, duration, easing, callback) {
easing = null; easing = null;
} }
return this.each(function() { return this.queue('fx', function() {
$.queue(this, 'fx', function() {
var that = $(this), var that = $(this),
originalStyleAttr = that.attr('style') || ' ', originalStyleAttr = that.attr('style') || ' ',
originalStyle = filterStyles(getElementStyles.call(this)), originalStyle = filterStyles(getElementStyles.call(this)),
@ -268,7 +267,6 @@ $.effects.animateClass = function(value, duration, easing, callback) {
queue.splice(1, 0, anim); queue.splice(1, 0, anim);
$.dequeue(this); $.dequeue(this);
}); });
});
}; };
$.fn.extend({ $.fn.extend({