Skip to content

Commit 965a07c

Browse files
committed
style: make comment single-line for consistency
1 parent 1ffddd6 commit 965a07c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/observe.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ function createObserver(options: IntersectionObserverInit) {
8282
entry.isVisible = inView;
8383
}
8484

85-
// Copy the callbacks array before iterating to prevent issues when callbacks
86-
// are removed during iteration (e.g., when using triggerOnce)
85+
// Copy the callbacks array before iterating to prevent issues when callbacks are removed during iteration (e.g., when using triggerOnce)
8786
[...(elements.get(entry.target) ?? [])].forEach((callback) => {
8887
callback(inView, entry);
8988
});

0 commit comments

Comments
 (0)