forked from mirror/_s
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:
parent
43ea44cb44
commit
47a64fcca5
|
@ -9,7 +9,7 @@ jQuery( document ).ready( function( $ ) {
|
||||||
$masthead.find( '.site-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' );
|
$masthead.find( '.site-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' );
|
||||||
$masthead.find( '.site-navigation h1' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' );
|
$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();
|
$masthead.find( '.menu' ).toggle();
|
||||||
$( this ).toggleClass( 'toggled-on' );
|
$( this ).toggleClass( 'toggled-on' );
|
||||||
} );
|
} );
|
||||||
|
|
Reference in New Issue