Skip to content
Permalink
Browse files

Fixed a bug in jQuery.speed(), when there's no properties provided.

  • Loading branch information
jeresig committed Jan 10, 2007
1 parent 2ad5faf commit a3806202ffe1ecc85ba6213f06cc7b6f68c49695
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/fx/fx.js
@@ -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
};

0 comments on commit a380620

Please sign in to comment.
You can’t perform that action at this time.