Skip to content

Commit a38ad0d

Browse files
committed
Renames callback.
1 parent 5b00bed commit a38ad0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swipeable-cards/cards.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ class Cards {
151151
easing: 'cubic-bezier(0,0,0.31,1)',
152152
duration: 150
153153
};
154-
const callback = () => this.resetTarget();
154+
const onAnimationComplete = () => this.resetTarget();
155155

156156
for (let i = startIndex; i < this.cards.length; i++) {
157157
const card = this.cards[i];
158158

159159
// Move the card down then slide it up.
160160
card
161161
.animate(frames, options)
162-
.addEventListener('finish', callback);
162+
.addEventListener('finish', onAnimationComplete);
163163
}
164164
}
165165

0 commit comments

Comments
 (0)