Skip to content
Permalink
Browse files

Effects: Force a non-empty hash of properties for class animations to…

… ensure the callback is always executed. Fixes #4396 - animateClass does nothing if there are no styles changes. See jQuery core bug #5459 for the cause.
  • Loading branch information...
scottgonzalez committed Nov 6, 2009
1 parent b0f59ee commit 23c87aaf435955ea02794d4e09fde53887040e96
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.effects.core.js
@@ -197,7 +197,7 @@ function filterStyles(styles) {
}

function styleDifference(oldStyle, newStyle) {
var diff = {},
var diff = { _: 0 }, // http://dev.jquery.com/ticket/5459
name;

for (name in newStyle) {

0 comments on commit 23c87aa

Please sign in to comment.
You can’t perform that action at this time.