Skip to content

Instantly share code, notes, and snippets.

@zznq
Created September 28, 2011 17:25
Show Gist options
  • Save zznq/1248564 to your computer and use it in GitHub Desktop.
Save zznq/1248564 to your computer and use it in GitHub Desktop.
Ugly Nested Conditions
if (!$desc.is(':visible')) {
if(quick)
$desc.show();
else
$desc.slideDown();
} else {
if(quick)
$desc.hide();
else
$desc.slideUp();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment