This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * fireThenDebounce(delay, immediate, tail) | |
| * | |
| * delay - number of milliseconds in which to debounce the `trail` callback | |
| * immediate - function to run when the debounce handler starts | |
| * tail - the debounced function to run after the inactive delay is reached | |
| * | |
| * This is a special version of a debounce handler, which allows you to trigger | |
| * off code to run at the start and end of a debounced event. A normal debounce | |
| * event only fires when a debounced event ends. |