File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const controllers = new Set<string>()
66 */
77export 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 }
You can’t perform that action at this time.
0 commit comments