Skip to content
Permalink
Browse files

Effects: Proper argument shuffling when calling show/hide/toggle with…

…out a speed.

Fixes #5269 - Show and hide effects errantly require "duration" option to fire callback.
  • Loading branch information...
scottgonzalez committed Mar 4, 2010
1 parent 868732e commit 301eb30ac1b72763a5800c226e8dab3322d402a5
Showing with 4 additions and 0 deletions.
  1. +4 −0 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;

0 comments on commit 301eb30

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