Skip to content
Permalink
Browse files

Fixed argument shifting for effects. Fixes #5731 - hide and show call…

…ed with ommiting the options in parameters does not call the callback.
  • Loading branch information...
kobrigo authored and scottgonzalez committed Jun 16, 2010
1 parent bf947d1 commit 141748788b034e97337ee7d9d137153c445097fd
Showing with 5 additions and 5 deletions.
  1. +5 −5 ui/jquery.effects.core.js
@@ -418,15 +418,15 @@ function _normalizeArguments(effect, options, speed, callback) {
speed = null;
options = {};
}
if ($.isFunction(speed)) {
callback = speed;
speed = null;
}
if (typeof options == 'number' || $.fx.speeds[options]) {
if (typeof options == 'number' || $.fx.speeds[options]) {
callback = speed;
speed = options;
options = {};
}
if ($.isFunction(speed)) {
callback = speed;
speed = null;
}

options = options || {};

0 comments on commit 1417487

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