Tag: function guard

A JavaScript Function Guard

Here’s a utility that marshals your function requests so the function only gets invoked after you’ve finally stopped requesting it. For example if I push a button and then wait for a given interval, the function gets called, but if I push it again before the interval has elapsed, the clock is reset and I have to wait another 500ms.

Continue reading “A JavaScript Function Guard”

Advertisements