Skip to content

Commit d790e4b

Browse files
koddssonkeithamus
andcommitted
Rename whenSeen to lazyDefine
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
1 parent 2e858fb commit d790e4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lazy-define.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const elementLoader = new MutationObserver(mutations => {
9292
})
9393

9494
let first = true
95-
export function whenSeen(tagName: string, callback: () => void) {
95+
export function lazyDefine(tagName: string, callback: () => void) {
9696
if (!dynamicElements.has(tagName)) dynamicElements.set(tagName, new Set<() => void>())
9797
dynamicElements.get(tagName)!.add(callback)
9898

0 commit comments

Comments
 (0)