Skip to content

Commit 10af118

Browse files
committed
replace null by noop
1 parent d2eab5a commit 10af118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/dom/elements/transitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ function animate(element, options, counterpart, t2, on_finish) {
430430
// This prevents onfinish to be launched after cancel(),
431431
// which can happen in some rare cases
432432
// see https://github.com/sveltejs/svelte/issues/13681
433-
animation.onfinish = null;
433+
animation.onfinish = noop;
434434
}
435435
},
436436
deactivate: () => {

0 commit comments

Comments
 (0)