From 301eb30ac1b72763a5800c226e8dab3322d402a5 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 4 Mar 2010 01:31:17 +0000 Subject: Effects: Proper argument shuffling when calling show/hide/toggle without a speed. Fixes #5269 - Show and hide effects errantly require "duration" option to fire callback. --- ui/jquery.effects.core.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/jquery.effects.core.js') diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 2d0c873d4..ed7eb099e 100644 --- a/ui/jquery.effects.core.js +++ b/ui/jquery.effects.core.js @@ -418,6 +418,10 @@ function _normalizeArguments(effect, options, speed, callback) { speed = null; options = {}; } + if ($.isFunction(speed)) { + callback = speed; + speed = null; + } if (typeof options == 'number' || $.fx.speeds[options]) { callback = speed; speed = options; -- cgit v1.2.3