Extension: Use destructuring
This commit is contained in:
@@ -96,7 +96,7 @@ var SwitcherTheme = class extends Switcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#disconnectSettings() {
|
#disconnectSettings() {
|
||||||
this.#settingsConnections.forEach(connection => connection.settings.disconnect(connection.id));
|
this.#settingsConnections.forEach(({ settings, id }) => settings.disconnect(id));
|
||||||
this.#settingsConnections = [];
|
this.#settingsConnections = [];
|
||||||
debug.message(`Disconnected ${this.#name} switcher from settings.`);
|
debug.message(`Disconnected ${this.#name} switcher from settings.`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ var Timer = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#disconnectSettings() {
|
#disconnectSettings() {
|
||||||
this.#settingsConnections.forEach(connection => connection.settings.disconnect(connection.id));
|
this.#settingsConnections.forEach(({ settings, id }) => settings.disconnect(id));
|
||||||
this.#settingsConnections = [];
|
this.#settingsConnections = [];
|
||||||
debug.message('Disconnected Timer from settings.');
|
debug.message('Disconnected Timer from settings.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user