mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
fix: revert to map
This commit is contained in:
parent
3d88fce4c7
commit
52789fa47a
@ -18,7 +18,7 @@ export function useIntersectionObserver (options?: Partial<IntersectionObserverI
|
|||||||
}
|
}
|
||||||
|
|
||||||
let observer: IntersectionObserver | null = null
|
let observer: IntersectionObserver | null = null
|
||||||
const callbacks = new WeakMap<Element, CallbackFn>()
|
const callbacks = new Map<Element, CallbackFn>()
|
||||||
|
|
||||||
const observe: ObserveFn = (element, callback) => {
|
const observe: ObserveFn = (element, callback) => {
|
||||||
if (!observer) {
|
if (!observer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user