Skip to content
Permalink
Browse files

Effects: fix backwards compatibility in animateClass for jQuery Core …

…<1.8
  • Loading branch information...
mikesherov committed Jan 9, 2013
1 parent e63cb47 commit 78a6354180053ffb8e54be6bfb69260c6da2d2e8
Showing with 9 additions and 0 deletions.
  1. +9 −0 ui/jquery.ui.effect.js
@@ -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 );

0 comments on commit 78a6354

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