Effects: fix backwards compatibility in animateClass for jQuery Core <1.8

This commit is contained in:
Mike Sherov 2013-01-08 21:36:34 -05:00
parent e63cb47c88
commit 78a6354180

View File

@ -754,6 +754,15 @@ function styleDifference( oldStyle, newStyle ) {
return diff;
}
// support: jQuery <1.8
if ( !$.fn.addBack ) {
$.fn.addBack = function( selector ) {
return this.add( selector == null ?
this.prevObject : this.prevObject.filter( selector )
);
};
}
$.effects.animateClass = function( value, duration, easing, callback ) {
var o = $.speed( duration, easing, callback );