Skip to content

Commit 98f2f2d

Browse files
author
Daniel Schmidt
committed
Array.from caused infinite loop in IE 11. Remove it, since it's not actually needed.
1 parent ea1f660 commit 98f2f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intersection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function unobserve(element) {
4545
observerInstance.unobserve(element)
4646
}
4747

48-
const itemsLeft = Array.from(INSTANCE_MAP.values()).some(
48+
const itemsLeft = INSTANCE_MAP.values().some(
4949
item => item.threshold === instance.threshold,
5050
)
5151

0 commit comments

Comments
 (0)