Skip to content
Permalink
Browse files

Accordion demo: Don't use .toggle(fn).

  • Loading branch information...
scottgonzalez committed May 21, 2012
1 parent 33a91fb commit 820cff8a67d96c07f3e5394fd49055bbcf7cb939
Showing with 6 additions and 4 deletions.
  1. +6 −4 demos/accordion/custom-icons.html
@@ -19,10 +19,12 @@
$( "#accordion" ).accordion({
icons: icons
});
$( "#toggle" ).button().toggle(function() {
$( "#accordion" ).accordion( "option", "icons", null );
}, function() {
$( "#accordion" ).accordion( "option", "icons", icons );
$( "#toggle" ).button().click(function() {
if ( $( "#accordion" ).accordion( "option", "icons" ) ) {
$( "#accordion" ).accordion( "option", "icons", null );
} else {
$( "#accordion" ).accordion( "option", "icons", icons );
}
});
});
</script>

0 comments on commit 820cff8

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