Made .show() and .hide() use .animate() only if speed argument is truthy or 0.
This commit is contained in:
parent
28ce15979f
commit
21441b1cbc
4
src/effects.js
vendored
4
src/effects.js
vendored
|
@ -13,7 +13,7 @@ var elemdisplay = {},
|
||||||
|
|
||||||
jQuery.fn.extend({
|
jQuery.fn.extend({
|
||||||
show: function( speed, callback ) {
|
show: function( speed, callback ) {
|
||||||
if ( speed != null ) {
|
if ( speed || speed === 0) {
|
||||||
return this.animate( genFx("show", 3), speed, callback);
|
return this.animate( genFx("show", 3), speed, callback);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -57,7 +57,7 @@ jQuery.fn.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
hide: function( speed, callback ) {
|
hide: function( speed, callback ) {
|
||||||
if ( speed != null ) {
|
if ( speed || speed === 0 ) {
|
||||||
return this.animate( genFx("hide", 3), speed, callback);
|
return this.animate( genFx("hide", 3), speed, callback);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue