Effects: Backporting e8ba367 to 1-8-stable - Fixes #8113 - addClass not animating

This commit is contained in:
Corey Frang 2012-03-27 14:06:49 -05:00
parent 090ce4369d
commit e220cf2a7d

View File

@ -236,7 +236,7 @@ $.effects.animateClass = function(value, duration, easing, callback) {
originalStyleAttr = that.attr('style') || ' ',
originalStyle = filterStyles(getElementStyles.call(this)),
newStyle,
className = that.attr('class');
className = that.attr('class') || "";
$.each(classAnimationActions, function(i, action) {
if (value[action]) {