- Linting: For non-jQuery methods, apply no-fn-reference-in-iterator rule (though still keep rule disabled due to numerous jQuery false positives)
- Linting: With num. of warnings set to 0, probably need to disable `check-examples` for those environments having problems - Linting: Reenable Unicorn rules now that updated
This commit is contained in:
@@ -20035,10 +20035,10 @@
|
||||
elem.attr.id = changedIDs[elem.attr.id];
|
||||
}
|
||||
|
||||
if (elem.children) elem.children.forEach(checkIDs);
|
||||
if (elem.children) elem.children.forEach(child => checkIDs(child));
|
||||
}
|
||||
|
||||
clipb.forEach(checkIDs); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
|
||||
clipb.forEach(elem => checkIDs(elem)); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
|
||||
|
||||
/**
|
||||
* Triggered when `pasteElements` is called from a paste action (context menu or key).
|
||||
|
||||
2
src/external/dom-polyfill/dom-polyfill.js
vendored
2
src/external/dom-polyfill/dom-polyfill.js
vendored
@@ -42,6 +42,7 @@ function convertNodesIntoANode (nodes) {
|
||||
}
|
||||
const node = document.createDocumentFragment();
|
||||
nodes.forEach((n) => {
|
||||
// // eslint-disable-next-line unicorn/prefer-node-append
|
||||
node.appendChild(n);
|
||||
});
|
||||
return node;
|
||||
@@ -54,6 +55,7 @@ const ParentNode = {
|
||||
},
|
||||
append (...nodes) {
|
||||
nodes = convertNodesIntoANode(nodes);
|
||||
// // eslint-disable-next-line unicorn/prefer-node-append
|
||||
this.appendChild(nodes);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -6443,9 +6443,9 @@ this.pasteElements = function (type, x, y) {
|
||||
changedIDs[elem.attr.id] = getNextId();
|
||||
elem.attr.id = changedIDs[elem.attr.id];
|
||||
}
|
||||
if (elem.children) elem.children.forEach(checkIDs);
|
||||
if (elem.children) elem.children.forEach((child) => checkIDs(child));
|
||||
}
|
||||
clipb.forEach(checkIDs);
|
||||
clipb.forEach((elem) => checkIDs(elem));
|
||||
|
||||
// Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user