Skip to content

Commit e8ba367

Browse files
committed
Effects: fixing an animateClass issue when the class was empty
1 parent dda67fc commit e8ba367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.effects.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
223223

224224
return this.queue( function() {
225225
var animated = $( this ),
226-
baseClass = animated.attr( "class" ),
226+
baseClass = animated.attr( "class" ) || "",
227227
finalClass,
228228
allAnimations = o.children ? animated.find( "*" ).andSelf() : animated;
229229

0 commit comments

Comments
 (0)