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