Moved "later" function definition out of the returned debounce function
Merge pull request #1426 from smelnikov/debounce_fix

Moved "later" function definition out of the returned debounce function