From 0332027963019c8cce6fd2c482ccef2f7fe2f39c Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Sun, 4 Mar 2018 22:55:58 +0000 Subject: [PATCH] Add comment --- client/src/structs/settings/types/array.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/src/structs/settings/types/array.js b/client/src/structs/settings/types/array.js index 2521869c..e7b94bb6 100644 --- a/client/src/structs/settings/types/array.js +++ b/client/src/structs/settings/types/array.js @@ -147,12 +147,9 @@ export default class ArraySetting extends Setting { } /** - * Sets the value of this setting. - * This is only intended for use by settings. - * @param {SettingsSetting} value The new value of this setting - * @param {Boolean} emit_multi Whether to emit a SettingsUpdatedEvent - * @param {Boolean} emit Whether to emit a SettingUpdatedEvent - * @return {Promise} + * Function to be called after the value changes. + * This can be overridden by other settings types. + * @param {SettingUpdatedEvent} updatedSetting */ setValueHook(updatedSetting) { this.args.items = updatedSetting.value ? updatedSetting.value.map(item => this.createItem(item)) : [];