saga icon indicating copy to clipboard operation
saga copied to clipboard

Stop the menu slide animation when clicking the button multiple times

Open jayj opened this issue 11 years ago • 0 comments

Clicking the menu toggle button many times in a row causes a queue build up, where the menu just slides up and down till it's done.

This PR adds .stop() before .slideToggle()

"When .stop() is called on an element, the currently-running animation (if any) is immediately stopped" - http://api.jquery.com/stop/

jayj avatar Dec 09 '14 08:12 jayj