make linter happier
This commit is contained in:
parent
b65faafc30
commit
cf592820c6
1 changed files with 2 additions and 2 deletions
|
@ -11,13 +11,13 @@ export class ApplicationController extends Controller {
|
|||
|
||||
let debounced = this.#debounced.get(fn);
|
||||
if (!debounced) {
|
||||
let wrapper = () => {
|
||||
const wrapper = () => {
|
||||
fn.bind(this)();
|
||||
this.#debounced.delete(fn);
|
||||
if (this.#debounced.size == 0) {
|
||||
this.globalDispatch('debounced:empty');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
debounced = debounce(wrapper.bind(this), interval);
|
||||
|
||||
|
|
Loading…
Reference in a new issue