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:
231c875
)
Allowing falsy values to be passed as a speed for hide().
author
Scott Gonzalez
<sgonzale@sgonzale-laptop.local>
Thu, 12 Nov 2009 22:39:33 +0000
(06:39 +0800)
committer
John Resig
<jeresig@gmail.com>
Fri, 13 Nov 2009 04:23:39 +0000
(12:23 +0800)
src/fx.js
patch
|
blob
|
history
diff --git
a/src/fx.js
b/src/fx.js
index
62cda09
..
c34b856
100644
(file)
--- a/
src/fx.js
+++ b/
src/fx.js
@@
-59,7
+59,7
@@
jQuery.fn.extend({
},
hide: function(speed,callback){
- if ( speed !== undefined ) {
+ if ( speed ) {
return this.animate( genFx("hide", 3), speed, callback);
} else {
for ( var i = 0, l = this.length; i < l; i++ ){