mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 16:31:58 +02:00
Use "const" where possible
Increase readability by using "const" for identifiers that will not be reassigned
This commit is contained in:
@@ -8,7 +8,7 @@ class ClapperHeaderBar extends HeaderBarBase
|
||||
{
|
||||
super._init(window);
|
||||
|
||||
let clapperWidget = window.get_child();
|
||||
const clapperWidget = window.get_child();
|
||||
clapperWidget.controls.unfloatButton.bind_property('visible', this, 'visible',
|
||||
GObject.BindingFlags.INVERT_BOOLEAN
|
||||
);
|
||||
@@ -16,13 +16,13 @@ class ClapperHeaderBar extends HeaderBarBase
|
||||
|
||||
_onFloatButtonClicked()
|
||||
{
|
||||
let clapperWidget = this.get_prev_sibling();
|
||||
const clapperWidget = this.get_prev_sibling();
|
||||
clapperWidget.setFloatingMode(true);
|
||||
}
|
||||
|
||||
_onFullscreenButtonClicked()
|
||||
{
|
||||
let window = this.get_parent();
|
||||
const window = this.get_parent();
|
||||
window.fullscreen();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user