From e72308280f7df71d5732bb1cc25b22c1145c92b3 Mon Sep 17 00:00:00 2001 From: Robin North Date: Thu, 18 Jan 2018 20:47:49 +0000 Subject: [PATCH] Replace instances of ES6 `const` keyword with `var` --- lib/proto/attach-form.js | 2 +- lib/proto/attach-link.js | 2 +- lib/switches.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/proto/attach-form.js b/lib/proto/attach-form.js index 1fdb537..96bf39d 100644 --- a/lib/proto/attach-form.js +++ b/lib/proto/attach-form.js @@ -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); }; diff --git a/lib/proto/attach-link.js b/lib/proto/attach-link.js index e48b702..2a0e641 100644 --- a/lib/proto/attach-link.js +++ b/lib/proto/attach-link.js @@ -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) } diff --git a/lib/switches.js b/lib/switches.js index 86beff3..405d6bf 100644 --- a/lib/switches.js +++ b/lib/switches.js @@ -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()) }