Skip to content

Commit

Permalink
fixed fadeOut() shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
danauclair committed Mar 30, 2011
1 parent dac3087 commit 4e6aa80
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
38 changes: 20 additions & 18 deletions jquery.animate-enhanced.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions scripts/src/jquery.animate-enhanced.js
Expand Up @@ -194,6 +194,8 @@ Changelog:
if (!parts && val == "show") {
cleanStart = 1;
if (hidden) e.css({'display':'block', 'opacity': 0});
} else if (!parts && val == "hide") {
cleanStart = 0;
}

if (parts) {
Expand Down Expand Up @@ -447,6 +449,11 @@ Changelog:

self.css(reset).css(restore);
}

// if we used the fadeOut shortcut make sure elements are display:none
if (prop.opacity === 'hide') {
self.css('display', 'none');
}

// reset
self.data(DATA_KEY, null);
Expand Down

0 comments on commit 4e6aa80

Please sign in to comment.