mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Effects: fix backwards compatibility in animateClass for jQuery Core <1.8
This commit is contained in:
parent
e63cb47c88
commit
78a6354180
9
ui/jquery.ui.effect.js
vendored
9
ui/jquery.ui.effect.js
vendored
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user