mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Allowing falsy values to be passed as a speed for hide().
This commit is contained in:
parent
231c875678
commit
9cd5866a29
@ -59,7 +59,7 @@ jQuery.fn.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
hide: function(speed,callback){
|
hide: function(speed,callback){
|
||||||
if ( speed !== undefined ) {
|
if ( speed ) {
|
||||||
return this.animate( genFx("hide", 3), speed, callback);
|
return this.animate( genFx("hide", 3), speed, callback);
|
||||||
} else {
|
} else {
|
||||||
for ( var i = 0, l = this.length; i < l; i++ ){
|
for ( var i = 0, l = this.length; i < l; i++ ){
|
||||||
|
Loading…
Reference in New Issue
Block a user