Skip to content

Commit cc5c583

Browse files
dgrahamkeithamus
andcommitted
findElementsToBind -> bindElements
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
1 parent cb3bbec commit cc5c583

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/bind.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const controllers = new Set<string>()
66
*/
77
export function bind(controller: HTMLElement): void {
88
controllers.add(controller.tagName.toLowerCase())
9-
findElementsToBind(controller)
9+
bindElements(controller)
1010
}
1111

1212
/**
@@ -25,7 +25,7 @@ export function listenForBind(el: Node = document): Subscription {
2525
} else if (mutation.type === 'childList' && mutation.addedNodes.length) {
2626
for (const node of mutation.addedNodes) {
2727
if (node instanceof Element) {
28-
findElementsToBind(node)
28+
bindElements(node)
2929
}
3030
}
3131
}
@@ -48,7 +48,7 @@ interface Subscription {
4848
unsubscribe(): void
4949
}
5050

51-
function findElementsToBind(root: Element) {
51+
function bindElements(root: Element) {
5252
for (const el of root.querySelectorAll('[data-action]')) {
5353
bindActions(el)
5454
}

0 commit comments

Comments
 (0)