code-dot-org/blockly — pull request #608 by bcjordan (2014-05-23 20:41:43+00:00)
Title: Debounce run button

In IE 11, clicking the Run button would call onAttempt twice. This can be tested by setting a breakpoint on onAttempt() in the IE dev tools on BrowserStack.

This fix adds the underscore debounce utility to our utils class and debounces the run button click callback so that it does not get hit more than once in 250ms.

With this fix in place, the breakpoint only gets hit once.