aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/models/Tab.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-05-28 18:51:33 +0200
committernpmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>2021-06-02 15:10:01 +0000
commitaef00ddeaf4bfa14a5f99a5e462623624202ad70 (patch)
treed1f24a239f1c030ac784185edd7f650960f750f6 /apps/files/src/models/Tab.js
parentd9a9714675eaeca689302eea8e432ff32ca2f048 (diff)
downloadnextcloud-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/Tab.js')
-rw-r--r--apps/files/src/models/Tab.js48
1 files changed, 24 insertions, 24 deletions
diff --git a/apps/files/src/models/Tab.js b/apps/files/src/models/Tab.js
index 93770ace0ac..b425fc16b2d 100644
--- a/apps/files/src/models/Tab.js
+++ b/apps/files/src/models/Tab.js
@@ -22,14 +22,14 @@
export default class Tab {
- #id
- #name
- #icon
- #mount
- #update
- #destroy
- #enabled
- #scrollBottomReached
+ _id
+ _name
+ _icon
+ _mount
+ _update
+ _destroy
+ _enabled
+ _scrollBottomReached
/**
* Create a new tab instance
@@ -78,47 +78,47 @@ export default class Tab {
throw new Error('The scrollBottomReached argument should be a function')
}
- this.#id = id
- this.#name = name
- this.#icon = icon
- this.#mount = mount
- this.#update = update
- this.#destroy = destroy
- this.#enabled = enabled
- this.#scrollBottomReached = scrollBottomReached
+ this._id = id
+ this._name = name
+ this._icon = icon
+ this._mount = mount
+ this._update = update
+ this._destroy = destroy
+ this._enabled = enabled
+ this._scrollBottomReached = scrollBottomReached
}
get id() {
- return this.#id
+ return this._id
}
get name() {
- return this.#name
+ return this._name
}
get icon() {
- return this.#icon
+ return this._icon
}
get mount() {
- return this.#mount
+ return this._mount
}
get update() {
- return this.#update
+ return this._update
}
get destroy() {
- return this.#destroy
+ return this._destroy
}
get enabled() {
- return this.#enabled
+ return this._enabled
}
get scrollBottomReached() {
- return this.#scrollBottomReached
+ return this._scrollBottomReached
}
}