Allowing falsy values to be passed as a speed for show().
This commit is contained in:
parent
ee9192d103
commit
231c875678
|
@ -19,7 +19,7 @@ function genFx( type, num ){
|
||||||
|
|
||||||
jQuery.fn.extend({
|
jQuery.fn.extend({
|
||||||
show: function(speed,callback){
|
show: function(speed,callback){
|
||||||
if ( speed !== undefined ) {
|
if ( speed ) {
|
||||||
return this.animate( genFx("show", 3), speed, callback);
|
return this.animate( genFx("show", 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 a new issue