Created
September 26, 2014 19:59
-
-
Save jisaacks/a1dd17cc4eb24273020d to your computer and use it in GitHub Desktop.
Debounce and merge params
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
(func, wait, immediate) -> | |
_params = {} | |
run = _.debounce -> | |
func(_params) | |
_params = {} | |
, wait, immediate | |
(params) -> | |
_params = _.extend(_params, params) | |
run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment