cleanup: Use method syntax
Modern javascript has a short-hand for function properties, embrace it for better readability and to prepare for an eventual port to ES6 classes. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/23
This commit is contained in:

committed by
Florian Müllner

parent
cff0b81f32
commit
76f09b1e49
@ -9,7 +9,7 @@ var Indicator = new Lang.Class({
|
||||
Name: 'ScreencastIndicator',
|
||||
Extends: PanelMenu.SystemIndicator,
|
||||
|
||||
_init: function() {
|
||||
_init() {
|
||||
this.parent();
|
||||
|
||||
this._indicator = this._addIndicator();
|
||||
@ -20,7 +20,7 @@ var Indicator = new Lang.Class({
|
||||
Main.screencastService.connect('updated', Lang.bind(this, this._sync));
|
||||
},
|
||||
|
||||
_sync: function() {
|
||||
_sync() {
|
||||
this._indicator.visible = Main.screencastService.isRecording;
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user