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...
1 parent bf947d1 commit 141748788b034e97337ee7d9d137153c445097fd @kobrigo kobrigo committed with scottgonzalez Jun 16, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 ui/jquery.effects.core.js
View
@@ -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.