Skip to content
Permalink
Browse files

Made .show() and .hide() use .animate() only if speed argument is tru…

…thy or 0.
  • Loading branch information
Karl Swedberg authored and jeresig committed Jan 19, 2010
1 parent 28ce159 commit 21441b1cbc7a205e621b8c94a21eff102380ca03
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/effects.js
@@ -13,7 +13,7 @@ var elemdisplay = {},

jQuery.fn.extend({
show: function( speed, callback ) {
if ( speed != null ) {
if ( speed || speed === 0) {
return this.animate( genFx("show", 3), speed, callback);

} else {
@@ -57,7 +57,7 @@ jQuery.fn.extend({
},

hide: function( speed, callback ) {
if ( speed != null ) {
if ( speed || speed === 0 ) {
return this.animate( genFx("hide", 3), speed, callback);

} else {

0 comments on commit 21441b1

Please sign in to comment.
You can’t perform that action at this time.