chore(examples) prepare examples; cleanup

This commit is contained in:
Benjamin Wegener
2024-01-11 17:12:24 +00:00
parent 77b0138a40
commit dc21e6a488
3 changed files with 42 additions and 7 deletions

View File

@@ -34,12 +34,9 @@ class Cetra extends Emitter {
if (typeof value == 'undefined') {
value = Cetra.#defaultSettings.get(key);
}
this.#internals
.get('settings')
.set(key, value);
this.#internals.get('settings').set(key, value);
}
for (const [key, cb] of options) {
if (!key.startsWith('on') || typeof cb != 'function') continue;
this.on(key, cb);