Skip to content

Commit d2840c2

Browse files
committed
Prettier format
1 parent 81d6647 commit d2840c2

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/static/js/wishlist.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-env browser */
2-
async function animateCSS (node, animationName, duration) {
2+
async function animateCSS(node, animationName, duration) {
33
return await new Promise((resolve) => {
44
const oldStyle = node.style
55
node.classList.add('animated', animationName)
6-
if(duration) {
6+
if (duration) {
77
node.style.animationDuration = duration
88
node.style.faAnimationDuration = duration
99
}
@@ -51,10 +51,9 @@ function listen(element, upOrDown) {
5151
},
5252
)
5353

54-
5554
await Promise.all([
5655
animateCSS(tr, 'zoomOut', animationDuration),
57-
animateCSS(otherTr, 'zoomOut', animationDuration)
56+
animateCSS(otherTr, 'zoomOut', animationDuration),
5857
])
5958

6059
tr.style.visibility = 'hidden'
@@ -93,7 +92,7 @@ function listen(element, upOrDown) {
9392

9493
await Promise.all([
9594
animateCSS(tr, 'zoomIn', animationDuration),
96-
animateCSS(otherTr, 'zoomIn', animationDuration)
95+
animateCSS(otherTr, 'zoomIn', animationDuration),
9796
])
9897

9998
return false

0 commit comments

Comments
 (0)