make linter happier

This commit is contained in:
simon lehericey 2022-10-25 10:56:22 +02:00
parent b65faafc30
commit cf592820c6

View file

@ -11,13 +11,13 @@ export class ApplicationController extends Controller {
let debounced = this.#debounced.get(fn); let debounced = this.#debounced.get(fn);
if (!debounced) { if (!debounced) {
let wrapper = () => { const wrapper = () => {
fn.bind(this)(); fn.bind(this)();
this.#debounced.delete(fn); this.#debounced.delete(fn);
if (this.#debounced.size == 0) { if (this.#debounced.size == 0) {
this.globalDispatch('debounced:empty'); this.globalDispatch('debounced:empty');
} }
} };
debounced = debounce(wrapper.bind(this), interval); debounced = debounce(wrapper.bind(this), interval);