MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / debounce

Function debounce

public/iframe/lib/js/commonFun.js:841–846  ·  view source on GitHub ↗
(fn, wait)

Source from the content-addressed store, hash-verified

839 return result;
840 },
841 debounce(fn, wait) {
842 if (this.debounceTimer !== null) {
843 clearTimeout(this.debounceTimer)
844 }
845 this.debounceTimer = setTimeout(fn, wait || 500)
846 },
847 Toast(message, type) {
848 // Toast 提示
849 const params = {

Callers 2

scrollFuncFunction · 0.85
onPropertyChangeFunction · 0.85

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected