forked from mirror/_s
Add .unbind() before .click()
This commit is contained in:
parent
9b183fcc16
commit
23d87b749a
|
@ -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