]> source.dussan.org Git - jquery-ui.git/commitdiff
Effects: fixing an animateClass issue when the class was empty
authorCorey Frang <gnarf@gnarf.net>
Fri, 30 Sep 2011 00:45:23 +0000 (20:45 -0400)
committerCorey Frang <gnarf@gnarf.net>
Fri, 30 Sep 2011 00:45:23 +0000 (20:45 -0400)
ui/jquery.effects.core.js

index 699b41d818272c7baca47c27fe972fc75eb203cf..3dc0a4e6710fadc72eeb4df844ed6612570e74a2 100644 (file)
@@ -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;