diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-03-04 01:31:17 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-03-04 01:31:17 +0000 |
commit | 301eb30ac1b72763a5800c226e8dab3322d402a5 (patch) | |
tree | 7ae9f3127ce3f69f7feffd923e6d1ea4101afc08 /ui/jquery.effects.core.js | |
parent | 868732edac096d254295a818f24a605d9c14709c (diff) | |
download | jquery-ui-301eb30ac1b72763a5800c226e8dab3322d402a5.tar.gz jquery-ui-301eb30ac1b72763a5800c226e8dab3322d402a5.zip |
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.
Diffstat (limited to 'ui/jquery.effects.core.js')
-rw-r--r-- | ui/jquery.effects.core.js | 4 |
1 files changed, 4 insertions, 0 deletions
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; |