From 072f541855e264acb2e07698be40c0a82bc7a29a Mon Sep 17 00:00:00 2001 From: P Date: Mon, 11 Sep 2017 22:48:05 +0100 Subject: [PATCH] Change let -> var, solves #838 --- src/shared/dom.js | 2 +- test/js/samples/media-bindings/expected-bundle.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/dom.js b/src/shared/dom.js index 65c38061ff..ffbda89b6d 100644 --- a/src/shared/dom.js +++ b/src/shared/dom.js @@ -104,7 +104,7 @@ export function toNumber(value) { export function timeRangesToArray(ranges) { var array = []; - for (let i = 0; i < ranges.length; i += 1) { + for (var i = 0; i < ranges.length; i += 1) { array.push({ start: ranges.start(i), end: ranges.end(i) }); } return array; diff --git a/test/js/samples/media-bindings/expected-bundle.js b/test/js/samples/media-bindings/expected-bundle.js index 631999398c..980c134d90 100644 --- a/test/js/samples/media-bindings/expected-bundle.js +++ b/test/js/samples/media-bindings/expected-bundle.js @@ -35,7 +35,7 @@ function removeListener(node, event, handler) { function timeRangesToArray(ranges) { var array = []; - for (let i = 0; i < ranges.length; i += 1) { + for (var i = 0; i < ranges.length; i += 1) { array.push({ start: ranges.start(i), end: ranges.end(i) }); } return array;