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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue