Skip to content

Commit

Permalink
Fixed a bug in jQuery.speed(), when there's no properties provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Jan 10, 2007
1 parent 2ad5faf commit a380620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fx/fx.js
Expand Up @@ -356,9 +356,9 @@ jQuery.fn.extend({
jQuery.extend({ jQuery.extend({


speed: function(speed, easing, fn) { speed: function(speed, easing, fn) {
var opt = speed.constructor == Object ? speed : { var opt = speed && speed.constructor == Object ? speed : {
complete: fn || !fn && easing || complete: fn || !fn && easing ||
speed.constructor == Function && speed, speed && speed.constructor == Function && speed,
duration: speed, duration: speed,
easing: fn && easing || easing && easing.constructor != Function && easing easing: fn && easing || easing && easing.constructor != Function && easing
}; };
Expand Down

0 comments on commit a380620

Please sign in to comment.