- Linting (ESLint): Update polyfills to new compat rules of
eslint-config-ash-nazg and adhere to new rules (prefer `for-of` (or array methods) to `for`, catch preferred `includes` to `indexOf`); avoid `no-zero-fractions` rule for now - npm: Update devDeps (removing one unneeded)
This commit is contained in:
@@ -574,12 +574,11 @@ export class Drawing {
|
||||
const group = layer.getGroup();
|
||||
|
||||
// Clone children
|
||||
const children = currentGroup.childNodes;
|
||||
for (let index = 0; index < children.length; index++) {
|
||||
const ch = children[index];
|
||||
if (ch.localName === 'title') { continue; }
|
||||
group.append(this.copyElem(ch));
|
||||
}
|
||||
const children = [...currentGroup.childNodes];
|
||||
children.forEach((child) => {
|
||||
if (child.localName === 'title') { return; }
|
||||
group.append(this.copyElem(child));
|
||||
});
|
||||
|
||||
if (hrService) {
|
||||
hrService.startBatchCommand('Duplicate Layer');
|
||||
|
||||
Reference in New Issue
Block a user