Remove this.listeners property

This commit is contained in:
Ethan O'Brien 2025-05-12 20:57:12 -05:00
parent a1efedfbea
commit f70e897bd1
No known key found for this signature in database
GPG Key ID: 7A6E7CCD3BD93AB1

View File

@ -80,7 +80,6 @@ class EmulatorJS {
element.addEventListener(listeners[i], callback);
const data = { cb: callback, elem: element, listener: listeners[i] };
rv.push(data);
this.listeners.push(data);
}
return rv;
}
@ -221,7 +220,6 @@ class EmulatorJS {
if (this.config.defaultControllers) this.defaultControllers = this.config.defaultControllers;
this.muted = false;
this.paused = true;
this.listeners = [];
this.missingLang = [];
this.setElements(element);
this.setColor(this.config.color || "");