mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Fixing more linter errors
Changing lets to consts
This commit is contained in:
parent
0a0f827e3a
commit
0c7f6f685c
@ -79,7 +79,7 @@ export default new Polymer({
|
||||
|
||||
attached() {
|
||||
// This is required to bind a mousedown event in all browsers
|
||||
let _this = this;
|
||||
const _this = this;
|
||||
window.test = this.$.volumeUp;
|
||||
this.$.volumeUp.onmousedown = function onVolumeUpDown() {_this.handleVolumeUp();};
|
||||
this.$.volumeUp.ontouchstart = function onVolumeUpDown() {_this.handleVolumeUp();};
|
||||
@ -157,19 +157,19 @@ export default new Polymer({
|
||||
},
|
||||
|
||||
handleVolumeUp() {
|
||||
let obj = this.$.volumeUp;
|
||||
const obj = this.$.volumeUp;
|
||||
this.handleVolumeWorker('volume_up', obj, true);
|
||||
},
|
||||
|
||||
handleVolumeDown() {
|
||||
let obj = this.$.volumeDown;
|
||||
const obj = this.$.volumeDown;
|
||||
this.handleVolumeWorker('volume_down', obj, true);
|
||||
},
|
||||
|
||||
handleVolumeWorker(service, obj, force) {
|
||||
if (force || (obj !== undefined && obj.pointerDown)) {
|
||||
this.callService(service);
|
||||
let _this = this;
|
||||
const _this = this;
|
||||
setTimeout(function callback() {_this.handleVolumeWorker(service, obj, false);}, 500);
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user