1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-20 21:02:10 +02:00

some cleanups

This commit is contained in:
Morris Brodersen
2022-07-22 16:43:29 +02:00
parent 77238353f9
commit e17050a266
17 changed files with 201 additions and 211 deletions

View File

@@ -6,7 +6,7 @@ export function AppFlip(el, options) {
// enable animations only after an initial delay
setTimeout(() => {
enabled = true;
}, options.initialDelay || 100);
}, options.initialDelay ?? 100);
// take a snapshot before any HTML changes
// do this only for the first beforeFlip event in the current cycle