From 23d87b749a3c136e25d5f3cb3dda5decf969a6a8 Mon Sep 17 00:00:00 2001 From: Josh McCarty Date: Tue, 27 Mar 2012 22:17:50 -0700 Subject: [PATCH] Add .unbind() before .click() --- js/small-menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/small-menu.js b/js/small-menu.js index 28b34306..15db859e 100644 --- a/js/small-menu.js +++ b/js/small-menu.js @@ -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' ); } );