Add .unbind() before .click()

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9343 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
Ian Stewart 2012-03-29 18:21:54 +00:00
parent 7b04baa743
commit ace4518144
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' );
} );