From 934101fd65210df5cc3afc687441148642e3fdfc Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 15 Aug 2012 05:37:36 +0000 Subject: [PATCH] Twenty Twelve: stop nav slide animation when clicking the button multiple times in a row. Props Jayjdk, fixes #21531. git-svn-id: http://core.svn.wordpress.org/trunk@21519 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwelve/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwelve/js/theme.js b/wp-content/themes/twentytwelve/js/theme.js index c245695167..f624945a7e 100644 --- a/wp-content/themes/twentytwelve/js/theme.js +++ b/wp-content/themes/twentytwelve/js/theme.js @@ -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' ); } ); };