diff --git a/src/lazy-define.ts b/src/lazy-define.ts index 37f22f9..e900623 100644 --- a/src/lazy-define.ts +++ b/src/lazy-define.ts @@ -56,7 +56,7 @@ const strategies: Record = { } const timers = new WeakMap() -function scan(node: Element = document.body) { +function scan(node: Element) { cancelAnimationFrame(timers.get(node) || 0) timers.set( node,