aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/optional/arrange.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2021-01-13 17:26:33 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2021-01-13 17:26:33 +0100
commit4524c20b48abe08e69c25a7382a289592d147496 (patch)
tree3e475fe673d5acd800180282e84df03d396106f3 /src/modules/optional/arrange.js
parent4f4dc2afa62cb899a5cae72c359150f8adf27edb (diff)
downloadsvg.js-4524c20b48abe08e69c25a7382a289592d147496.tar.gz
svg.js-4524c20b48abe08e69c25a7382a289592d147496.zip
update dependencies, apply new linter fixes
Diffstat (limited to 'src/modules/optional/arrange.js')
-rw-r--r--src/modules/optional/arrange.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/optional/arrange.js b/src/modules/optional/arrange.js
index 30151c1..9aaeef1 100644
--- a/src/modules/optional/arrange.js
+++ b/src/modules/optional/arrange.js
@@ -23,8 +23,8 @@ export function prev () {
// Send given element one step forward
export function forward () {
- var i = this.position()
- var p = this.parent()
+ const i = this.position()
+ const p = this.parent()
// move node one step forward
p.add(this.remove(), i + 1)
@@ -34,8 +34,8 @@ export function forward () {
// Send given element one step backward
export function backward () {
- var i = this.position()
- var p = this.parent()
+ const i = this.position()
+ const p = this.parent()
p.add(this.remove(), i ? i - 1 : 0)
@@ -44,7 +44,7 @@ export function backward () {
// Send given element all the way to the front
export function front () {
- var p = this.parent()
+ const p = this.parent()
// Move node forward
p.add(this.remove())
@@ -54,7 +54,7 @@ export function front () {
// Send given element all the way to the back
export function back () {
- var p = this.parent()
+ const p = this.parent()
// Move node back
p.add(this.remove(), 0)
@@ -67,7 +67,7 @@ export function before (element) {
element = makeInstance(element)
element.remove()
- var i = this.position()
+ const i = this.position()
this.parent().add(element, i)
@@ -79,7 +79,7 @@ export function after (element) {
element = makeInstance(element)
element.remove()
- var i = this.position()
+ const i = this.position()
this.parent().add(element, i + 1)