Effects: fixing an animateClass issue when the class was empty

This commit is contained in:
Corey Frang 2011-09-29 20:45:23 -04:00
parent dda67fc171
commit e8ba367a58

View File

@ -223,7 +223,7 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
return this.queue( function() { return this.queue( function() {
var animated = $( this ), var animated = $( this ),
baseClass = animated.attr( "class" ), baseClass = animated.attr( "class" ) || "",
finalClass, finalClass,
allAnimations = o.children ? animated.find( "*" ).andSelf() : animated; allAnimations = o.children ? animated.find( "*" ).andSelf() : animated;