Replace instances of ES6 const keyword with var

This commit was merged in pull request #107.
This commit is contained in:
Robin North
2018-01-18 20:47:49 +00:00
committed by BehindTheMath
parent b98e3ef914
commit cd09cc88d1
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ module.exports = {
// Copy attributes from the new element to the old one
if (newEl.hasAttributes()) {
const attrs = newEl.attributes;
var attrs = newEl.attributes;
for (var i = 0; i < attrs.length; i++) {
oldEl.attributes.setNamedItem(attrs[i].cloneNode())
}