Replace instances of ES6 const keyword with var
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user