Web Inspector: Fix the debounce function

https://bugs.webkit.org/show_bug.cgi?id=156696
rdar://problem/25778133

Reviewed by Brian Burg.

* UserInterface/Base/Utilities.js:
(Function.prototype.debounce): Store the timeout on the original function instead
of the bound function. Also simplify the implementation with arrow functions
and eliminate the bind altogether.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@199676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2 files changed