- Linting (ESLint): Prefer addEventListener, exponentiation operator, avoiding catastrophic regexes, prefer spread, prefer startsWith/endsWith, no fn ref in iterator
- npm: Update devDeps (rollup and eslint-config-ash-nazg)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable indent */
|
||||
/* eslint-disable indent, unicorn/no-fn-reference-in-iterator */
|
||||
/* globals jQuery, jsPDF */
|
||||
/**
|
||||
* Numerous tools for working with the editor's "canvas"
|
||||
@@ -3656,7 +3656,7 @@ this.svgToString = function (elem, indent) {
|
||||
|
||||
if (elem) {
|
||||
cleanupElement(elem);
|
||||
const attrs = Array.from(elem.attributes);
|
||||
const attrs = [...elem.attributes];
|
||||
const childs = elem.childNodes;
|
||||
attrs.sort((a, b) => {
|
||||
return a.name > b.name ? -1 : 1;
|
||||
|
||||
Reference in New Issue
Block a user