diff options
author | Paul Irish <paul.irish@gmail.com> | 2010-10-17 14:26:32 -0400 |
---|---|---|
committer | Paul Irish <paul.irish@gmail.com> | 2010-10-17 14:26:32 -0400 |
commit | 97dfa0d5a85a32fe56aba837bbf2bc889b092d2b (patch) | |
tree | 12354fb98231242e9af0f942965cf9e187e66207 /src | |
parent | 8a5df39045292397a06d08b4fab2ad29819b5d44 (diff) | |
download | jquery-97dfa0d5a85a32fe56aba837bbf2bc889b092d2b.tar.gz jquery-97dfa0d5a85a32fe56aba837bbf2bc889b092d2b.zip |
fadeToggle(). as suggested by Karl Swedberg in his jQcon talk. patched live! omg
Diffstat (limited to 'src')
-rw-r--r-- | src/effects.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js index 7d2cd8f93..d7896c0e0 100644 --- a/src/effects.js +++ b/src/effects.js @@ -252,7 +252,8 @@ jQuery.each({ slideUp: genFx("hide", 1), slideToggle: genFx("toggle", 1), fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" } + fadeOut: { opacity: "hide" }, + fadeToggle: { opacity: "toggle" } }, function( name, props ) { jQuery.fn[ name ] = function( speed, easing, callback ) { return this.animate( props, speed, easing, callback ); |