mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
cleanup: Define GObject accessors in camelCase
gjs is smart enough to match a propertyName getter/setter to the corresponding property-name GObject property, so use that and get rid of the eslint camelcase rule exceptions. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1611>
This commit is contained in:
parent
0f1b566918
commit
252f2f5144
10 changed files with 30 additions and 60 deletions
|
|
@ -60,13 +60,11 @@ var BarLevel = GObject.registerClass({
|
|||
this.queue_repaint();
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
get maximum_value() {
|
||||
get maximumValue() {
|
||||
return this._maxValue;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
set maximum_value(value) {
|
||||
set maximumValue(value) {
|
||||
value = Math.max(value, 1);
|
||||
|
||||
if (this._maxValue == value)
|
||||
|
|
@ -78,13 +76,11 @@ var BarLevel = GObject.registerClass({
|
|||
this.queue_repaint();
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
get overdrive_start() {
|
||||
get overdriveStart() {
|
||||
return this._overdriveStart;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
set overdrive_start(value) {
|
||||
set overdriveStart(value) {
|
||||
if (this._overdriveStart == value)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue