Skip to content

Commit

Permalink
Add .unbind() before .click()
Browse files Browse the repository at this point in the history
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9343 d957f892-c61d-0410-b221-f235e6eecf30
  • Loading branch information
ianstewart committed Mar 29, 2012
1 parent 7b04baa commit ace4518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/small-menu.js
Expand Up @@ -9,7 +9,7 @@ jQuery( document ).ready( function( $ ) {
$masthead.find( '.site-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' );
$masthead.find( '.site-navigation h1' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' );

$( '.menu-toggle' ).click( function() {
$( '.menu-toggle' ).unbind( 'click' ).click( function() {
$masthead.find( '.menu' ).toggle();
$( this ).toggleClass( 'toggled-on' );
} );
Expand Down

0 comments on commit ace4518

Please sign in to comment.