changed var to let in 50 files (#13075)

This commit is contained in:
Patrick O'Carroll
2018-08-30 09:03:11 +02:00
committed by Torkel Ödegaard
parent b494a29e02
commit 552a61b6ae
50 changed files with 195 additions and 195 deletions

View File

@@ -24,9 +24,9 @@ export function graphiteFuncEditor($compile, templateSrv, popoverSrv) {
const $funcControls = $(funcControlsTemplate);
const ctrl = $scope.ctrl;
const func = $scope.func;
var scheduledRelink = false;
var paramCountAtLink = 0;
var cancelBlur = null;
let scheduledRelink = false;
let paramCountAtLink = 0;
let cancelBlur = null;
function clickFuncParam(paramIndex) {
/*jshint validthis:true */
@@ -133,7 +133,7 @@ export function graphiteFuncEditor($compile, templateSrv, popoverSrv) {
function addTypeahead($input, paramIndex) {
$input.attr('data-provide', 'typeahead');
var options = paramDef(paramIndex).options;
let options = paramDef(paramIndex).options;
if (paramDef(paramIndex).type === 'int') {
options = _.map(options, function(val) {
return val.toString();
@@ -190,7 +190,7 @@ export function graphiteFuncEditor($compile, templateSrv, popoverSrv) {
return false;
}
var paramValue = templateSrv.highlightVariablesAsHtml(func.params[index]);
let paramValue = templateSrv.highlightVariablesAsHtml(func.params[index]);
const last = index >= func.params.length - 1 && param.optional && !paramValue;
if (last && param.multiple) {