Permalink
Browse files

Add .unbind() before .click()

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9343 d957f892-c61d-0410-b221-f235e6eecf30
  • Loading branch information...
1 parent 7b04baa commit ace451814427c55c51bcf233118f3e639c79b190 @ianstewart ianstewart committed Mar 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/small-menu.js
View
2 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' );
} );

0 comments on commit ace4518

Please sign in to comment.