Commit a3806202 authored by John Resig's avatar John Resig

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

parent 2ad5faf3
......@@ -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
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment