Replace instances of ES6 const keyword with var #107

Merged
robinnorth merged 1 commits from replace-es6-syntax into master 2018-01-18 16:00:25 -05:00
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())
}