Replace instances of ES6 const keyword with var

This commit is contained in:
Robin North
2018-01-18 20:47:49 +00:00
parent b98e3ef914
commit e72308280f
3 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ var formAction = function(el, event) {
el.setAttribute(attrClick, "submit");
const options = clone(this.options);
var options = clone(this.options);
options.triggerElement = el;
this.loadUrl(virtLinkElement.href, options);
};

View File

@@ -54,7 +54,7 @@ var linkAction = function(el, event) {
this.options.requestOptions = this.options.requestOptions || {};
el.setAttribute(attrClick, "load")
const options = clone(this.options)
var options = clone(this.options)
options.triggerElement = el
this.loadUrl(el.href, options)
}

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())
}