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
| function debounce(fn, debounceDuration){ | |
| // summary: | |
| // Returns a debounced function that will make sure the given | |
| // function is not triggered too much. | |
| // fn: Function | |
| // Function to debounce. | |
| // debounceDuration: Number | |
| // OPTIONAL. The amount of time in milliseconds for which we | |
| // will debounce the function. (defaults to 100ms) |
NewerOlder