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);
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);