dojo/dojo — pull request #107 by elijahsmith (2014-08-13 22:47:40+00:00)
Title: allow debounce to be bound

the existing debounce implementation attempts to bind the callback to this, but in the context of the setTimeout function, that is always Window.

this PR binds the setTimeout function to the context of the outer function, which allows the result of debounce to be bound to a context, just as throttle allows.