git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ad5faf
)
Fixed a bug in jQuery.speed(), when there's no properties provided.
author
John Resig
<jeresig@gmail.com>
Wed, 10 Jan 2007 00:46:10 +0000
(
00:46
+0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 10 Jan 2007 00:46:10 +0000
(
00:46
+0000)
src/fx/fx.js
patch
|
blob
|
history
diff --git
a/src/fx/fx.js
b/src/fx/fx.js
index
30bedbf
..
0ede5ee
100644
(file)
--- a/
src/fx/fx.js
+++ b/
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
};