Automattic/_s — pull request #15 by joshmcrty (2012-03-28 05:27:54+00:00)
Title: Fix redundant .click() in small-menu.js on window resize

The .click() event in small-menu.js that toggles the .menu element is re-bound each time the window is resized. This causes multiple .click() events to be bound to the .menu-toggle element, effectively cancelling out the .toggle() function every other time the window is resized (change .toggle() to .slideToggle() to really see the effect).

By using .unbind( 'click' ) before .click(), this is no longer an issue. With jQuery 1.7 you could also use .off( 'click' ) instead.