Replace instances of ES6 const keyword with var
#107
@@ -61,7 +61,7 @@ var formAction = function(el, event) {
|
|||||||
|
|
||||||
el.setAttribute(attrClick, "submit");
|
el.setAttribute(attrClick, "submit");
|
||||||
|
|
||||||
const options = clone(this.options);
|
var options = clone(this.options);
|
||||||
options.triggerElement = el;
|
options.triggerElement = el;
|
||||||
this.loadUrl(virtLinkElement.href, options);
|
this.loadUrl(virtLinkElement.href, options);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ var linkAction = function(el, event) {
|
|||||||
this.options.requestOptions = this.options.requestOptions || {};
|
this.options.requestOptions = this.options.requestOptions || {};
|
||||||
el.setAttribute(attrClick, "load")
|
el.setAttribute(attrClick, "load")
|
||||||
|
|
||||||
const options = clone(this.options)
|
var options = clone(this.options)
|
||||||
options.triggerElement = el
|
options.triggerElement = el
|
||||||
this.loadUrl(el.href, options)
|
this.loadUrl(el.href, options)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ module.exports = {
|
|||||||
|
|
||||||
// Copy attributes from the new element to the old one
|
// Copy attributes from the new element to the old one
|
||||||
if (newEl.hasAttributes()) {
|
if (newEl.hasAttributes()) {
|
||||||
const attrs = newEl.attributes;
|
var attrs = newEl.attributes;
|
||||||
for (var i = 0; i < attrs.length; i++) {
|
for (var i = 0; i < attrs.length; i++) {
|
||||||
oldEl.attributes.setNamedItem(attrs[i].cloneNode())
|
oldEl.attributes.setNamedItem(attrs[i].cloneNode())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user