diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-05-28 18:51:33 +0200 |
---|---|---|
committer | npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com> | 2021-06-02 15:10:01 +0000 |
commit | aef00ddeaf4bfa14a5f99a5e462623624202ad70 (patch) | |
tree | d1f24a239f1c030ac784185edd7f650960f750f6 /apps/files/src/models/Setting.js | |
parent | d9a9714675eaeca689302eea8e432ff32ca2f048 (diff) | |
download | nextcloud-server-aef00ddeaf4bfa14a5f99a5e462623624202ad70.tar.gz nextcloud-server-aef00ddeaf4bfa14a5f99a5e462623624202ad70.zip |
Replace proposal-class-private-properties by regular properties
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files/src/models/Setting.js')
-rw-r--r-- | apps/files/src/models/Setting.js | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/apps/files/src/models/Setting.js b/apps/files/src/models/Setting.js index 3b57e330ad0..128c28d8679 100644 --- a/apps/files/src/models/Setting.js +++ b/apps/files/src/models/Setting.js @@ -23,10 +23,10 @@ export default class Setting { - #close - #el - #name - #open + _close + _el + _name + _open /** * Create a new files app setting @@ -38,32 +38,34 @@ export default class Setting { * @param {Function} [component.close] callback for when setting is closed */ constructor(name, { el, open, close }) { - this.#name = name - this.#el = el - this.#open = open - this.#close = close - if (typeof this.#open !== 'function') { - this.#open = () => {} + this._name = name + this._el = el + this._open = open + this._close = close + + if (typeof this._open !== 'function') { + this._open = () => {} } - if (typeof this.#close !== 'function') { - this.#close = () => {} + + if (typeof this._close !== 'function') { + this._close = () => {} } } get name() { - return this.#name + return this._name } get el() { - return this.#el + return this._el } get open() { - return this.#open + return this._open } get close() { - return this.#close + return this._close } } |