From 23c87aaf435955ea02794d4e09fde53887040e96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 6 Nov 2009 01:12:09 +0000 Subject: [PATCH] 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. --- ui/jquery.effects.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5