diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-11-06 01:12:09 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-11-06 01:12:09 +0000 |
commit | 23c87aaf435955ea02794d4e09fde53887040e96 (patch) | |
tree | 7e2ca361c0c55e12cb40c3018cf393ccaccf2ca9 | |
parent | b0f59eebdbf638cd863d5f181069e44d9a54e511 (diff) | |
download | jquery-ui-23c87aaf435955ea02794d4e09fde53887040e96.tar.gz jquery-ui-23c87aaf435955ea02794d4e09fde53887040e96.zip |
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.
-rw-r--r-- | ui/jquery.effects.core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 700190e67..11aacfcab 100644 --- a/ui/jquery.effects.core.js +++ b/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) { |