- npm: Update devDep Rollup

- Linting (ESLint): Prefer `const` over `let`
- Build: Update `dist` files
This commit is contained in:
Brett Zamir
2018-06-06 16:44:19 +08:00
parent 2deaf4710a
commit e7f3fbc841
8 changed files with 83 additions and 65 deletions

View File

@@ -3023,7 +3023,7 @@ this.svgToString = function (elem, indent) {
i = attrs.length;
const attrNames = ['width', 'height', 'xmlns', 'x', 'y', 'viewBox', 'id', 'overflow'];
while (i--) {
let attr = attrs[i];
const attr = attrs[i];
const attrVal = toXml(attr.value);
// Namespaces have already been dealt with, so skip
@@ -3044,7 +3044,7 @@ this.svgToString = function (elem, indent) {
const mozAttrs = ['-moz-math-font-style', '_moz-math-font-style'];
for (i = attrs.length - 1; i >= 0; i--) {
let attr = attrs[i];
const attr = attrs[i];
let attrVal = toXml(attr.value);
// remove bogus attributes added by Gecko
if (mozAttrs.includes(attr.localName)) { continue; }