From 75da8c2678179032455911cf85227baf898c894e Mon Sep 17 00:00:00 2001 From: Timmy Willison <4timmywil@gmail.com> Date: Fri, 15 Nov 2019 15:58:01 -0500 Subject: [PATCH] build: fix minification; can't use const in the JS file --- src/polyfills.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/polyfills.js b/src/polyfills.js index b93da306..7937e363 100644 --- a/src/polyfills.js +++ b/src/polyfills.js @@ -1,3 +1,4 @@ +/* eslint-disable no-var */ // Support: IE11 only if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach @@ -7,7 +8,7 @@ if (window.NodeList && !NodeList.prototype.forEach) { if (typeof window.CustomEvent !== 'function') { window.CustomEvent = function CustomEvent(event, params) { params = params || { bubbles: false, cancelable: false, detail: null } - const evt = document.createEvent('CustomEvent') + var evt = document.createEvent('CustomEvent') evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail) return evt }