From 0c7f6f685cdcb829fc68a91d60955375e8541952 Mon Sep 17 00:00:00 2001 From: Ryan Kraus Date: Mon, 11 Jan 2016 00:41:27 -0500 Subject: [PATCH] Fixing more linter errors Changing lets to consts --- src/more-infos/more-info-media_player.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/more-infos/more-info-media_player.js b/src/more-infos/more-info-media_player.js index 93b4848681..58e26370a4 100644 --- a/src/more-infos/more-info-media_player.js +++ b/src/more-infos/more-info-media_player.js @@ -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); } },