mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Made sure that a null speed doesn't get passed around. Patch from daltonlp. Fixes #5557.
This commit is contained in:
parent
b24da33f52
commit
b776e2b79a
@ -219,7 +219,7 @@ jQuery.each({
|
|||||||
jQuery.extend({
|
jQuery.extend({
|
||||||
|
|
||||||
speed: function(speed, easing, fn) {
|
speed: function(speed, easing, fn) {
|
||||||
var opt = typeof speed === "object" ? speed : {
|
var opt = speed && typeof speed === "object" ? speed : {
|
||||||
complete: fn || !fn && easing ||
|
complete: fn || !fn && easing ||
|
||||||
jQuery.isFunction( speed ) && speed,
|
jQuery.isFunction( speed ) && speed,
|
||||||
duration: speed,
|
duration: speed,
|
||||||
|
Loading…
Reference in New Issue
Block a user