Skip to content

Commit

Permalink
Twenty Twelve: stop nav slide animation when clicking the button mult…
Browse files Browse the repository at this point in the history
…iple times in a row. Props Jayjdk, fixes #21531.

git-svn-id: http://core.svn.wordpress.org/trunk@21519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
lancewillett committed Aug 15, 2012
1 parent 175a38d commit 934101f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/themes/twentytwelve/js/theme.js
Expand Up @@ -14,7 +14,7 @@ jQuery( document ).ready( function( $ ) {
masthead.find( '.site-navigation h3' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' );

$( '.menu-toggle' ).off( 'click' ).click( function() {
masthead.find( '.menu' ).slideToggle();
masthead.find( '.menu' ).stop().slideToggle();
$( this ).toggleClass( 'toggled-on' );
} );
};
Expand Down

0 comments on commit 934101f

Please sign in to comment.