diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
commit | 03322672782a6318b019eff33fe44ec800d6f12c (patch) | |
tree | 9d807e1585cf28a1ea98e87b855932dba00f1880 /src/elements/Container.js | |
parent | 8e18b4698edd00f83af0be05bb3374f92fecaeb9 (diff) | |
download | svg.js-03322672782a6318b019eff33fe44ec800d6f12c.tar.gz svg.js-03322672782a6318b019eff33fe44ec800d6f12c.zip |
dependency updates, easier formatting
Diffstat (limited to 'src/elements/Container.js')
-rw-r--r-- | src/elements/Container.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Container.js b/src/elements/Container.js index 9278435..0f45b6d 100644 --- a/src/elements/Container.js +++ b/src/elements/Container.js @@ -2,7 +2,7 @@ import { register } from '../utils/adopter.js' import Element from './Element.js' export default class Container extends Element { - flatten (parent = this, index) { + flatten() { this.each(function () { if (this instanceof Container) { return this.flatten().ungroup() @@ -12,7 +12,7 @@ export default class Container extends Element { return this } - ungroup (parent = this.parent(), index = parent.index(this)) { + ungroup(parent = this.parent(), index = parent.index(this)) { // when parent != this, we want append all elements to the end index = index === -1 ? parent.children().length : index |