chore(examples) prepare examples; cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user