aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fx.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fx.js b/src/fx.js
index d8340b139..d3a7ad404 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -19,7 +19,7 @@ function genFx( type, num ){
jQuery.fn.extend({
show: function( speed, callback ) {
- if ( typeof speed !== "undefined" ) {
+ if ( speed != null ) {
return this.animate( genFx("show", 3), speed, callback);
} else {
for ( var i = 0, l = this.length; i < l; i++ ){
@@ -59,7 +59,7 @@ jQuery.fn.extend({
},
hide: function( speed, callback ) {
- if ( typeof speed !== "undefined" ) {
+ if ( speed != null ) {
return this.animate( genFx("hide", 3), speed, callback);
} else {
for ( var i = 0, l = this.length; i < l; i++ ){