BUGFIX #47: Replaced 'const' declarations with 'var' to fix iOS incompatibilities.

This commit is contained in:
n1474335 2016-12-31 17:12:39 +00:00
parent 216d8f1f7a
commit 4d131c921a
9 changed files with 27 additions and 27 deletions

View file

@ -326,7 +326,7 @@ var Code = {
* @returns {string}
*/
run_xpath:function(input, args) {
const query = args[0],
var query = args[0],
delimiter = args[1];
var xml;
@ -343,8 +343,8 @@ var Code = {
return "Invalid XPath. Details:\n" + err.message;
}
const serializer = new XMLSerializer();
const node_to_string = function(node) {
var serializer = new XMLSerializer();
var node_to_string = function(node) {
switch (node.nodeType) {
case Node.ELEMENT_NODE: return serializer.serializeToString(node);
case Node.ATTRIBUTE_NODE: return node.value;
@ -383,7 +383,7 @@ var Code = {
* @returns {string}
*/
run_css_query: function(input, args) {
const query = args[0],
var query = args[0],
delimiter = args[1];
var html;
@ -400,7 +400,7 @@ var Code = {
return "Invalid CSS Selector. Details:\n" + err.message;
}
const node_to_string = function(node) {
var node_to_string = function(node) {
switch (node.nodeType) {
case Node.ELEMENT_NODE: return node.outerHTML;
case Node.ATTRIBUTE_NODE: return node.value;