Fixed a bug in jQuery.speed(), when there's no properties provided.
This commit is contained in:
parent
2ad5faf3a1
commit
a3806202ff
1 changed files with 2 additions and 2 deletions
|
@ -356,9 +356,9 @@ jQuery.fn.extend({
|
|||
jQuery.extend({
|
||||
|
||||
speed: function(speed, easing, fn) {
|
||||
var opt = speed.constructor == Object ? speed : {
|
||||
var opt = speed && speed.constructor == Object ? speed : {
|
||||
complete: fn || !fn && easing ||
|
||||
speed.constructor == Function && speed,
|
||||
speed && speed.constructor == Function && speed,
|
||||
duration: speed,
|
||||
easing: fn && easing || easing && easing.constructor != Function && easing
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue