aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.effect.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2013-01-08 21:36:34 -0500
committerMike Sherov <mike.sherov@gmail.com>2013-01-08 21:36:34 -0500
commit78a6354180053ffb8e54be6bfb69260c6da2d2e8 (patch)
tree1fd0d7191d167506c9cbb7079dd5b59f04579e66 /ui/jquery.ui.effect.js
parente63cb47c88d8067b707fbc7711ccc25ba621e911 (diff)
downloadjquery-ui-78a6354180053ffb8e54be6bfb69260c6da2d2e8.tar.gz
jquery-ui-78a6354180053ffb8e54be6bfb69260c6da2d2e8.zip
Effects: fix backwards compatibility in animateClass for jQuery Core <1.8
Diffstat (limited to 'ui/jquery.ui.effect.js')
-rw-r--r--ui/jquery.ui.effect.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/jquery.ui.effect.js b/ui/jquery.ui.effect.js
index e45b76de0..860eb5706 100644
--- a/ui/jquery.ui.effect.js
+++ b/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 );