Add .unbind() before .click()

This commit is contained in:
Josh McCarty 2012-03-27 22:17:50 -07:00
parent 9b183fcc16
commit 23d87b749a
1 changed files with 1 additions and 1 deletions

View File

@ -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' );
} );