r3410 committed - Effects: Force a non-empty hash of properties for class animations to ...
Revision: 3410
Author: scott.gonzalez
Date: Thu Nov 5 17:12:09 2009
Log: 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.
http://code.google.com/p/jquery-ui/source/detail?r=3410
Modified:
/trunk/ui/jquery.effects.core.js
=======================================
--- /trunk/ui/jquery.effects.core.js Sun Sep 20 14:07:38 2009
+++ /trunk/ui/jquery.effects.core.js Thu Nov 5 17:12:09 2009
@@ -197,7 +197,7 @@
}
function styleDifference(oldStyle, newStyle) {
- var diff = {},
+ var diff = { _: 0 }, // http://dev.jquery.com/ticket/5459
name;
for (name in newStyle) {