mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed a bug in jQuery.speed(), when there's no properties provided.
This commit is contained in:
parent
2ad5faf3a1
commit
a3806202ff
@ -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 New Issue
Block a user