replace const with var

This commit is contained in:
taoqf 2018-07-16 16:41:03 +08:00
parent 659cb85c6c
commit a40edfb2e8

View file

@ -497,7 +497,7 @@ export class Matcher {
method = '==';
}
const value = matcher[7] || matcher[8];
source += `const attrs = el.attributes;for (const key in attrs){const val = attrs[key]; if (key == "${attr_key}" && val ${method} "${value}"){return true;}} return false;`;
source += `var attrs = el.attributes;for (var key in attrs){const val = attrs[key]; if (key == "${attr_key}" && val ${method} "${value}"){return true;}} return false;`;
} else {
source += 'if (el.tagName != ' + JSON.stringify(tagName) + ') return false;';
}