From: Corey Frang Date: Fri, 30 Sep 2011 00:45:23 +0000 (-0400) Subject: Effects: fixing an animateClass issue when the class was empty X-Git-Tag: 1.9m7~208 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e8ba367a58995b191706e5682eacba534cd25697;p=jquery-ui.git Effects: fixing an animateClass issue when the class was empty --- diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 699b41d81..3dc0a4e67 100644 --- a/ui/jquery.effects.core.js +++ b/ui/jquery.effects.core.js @@ -223,7 +223,7 @@ $.effects.animateClass = function( value, duration, easing, callback ) { return this.queue( function() { var animated = $( this ), - baseClass = animated.attr( "class" ), + baseClass = animated.attr( "class" ) || "", finalClass, allAnimations = o.children ? animated.find( "*" ).andSelf() : animated;