We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 901e117 commit c294e19Copy full SHA for c294e19
1 file changed
src/actionable.ts
@@ -4,7 +4,7 @@ import {registerTag, observeElementForTags, parseElementTags} from './tag-observ
4
import {controllable, attachShadowCallback} from './controllable.js'
5
import {createAbility} from './ability.js'
6
7
-const parse = (tag: string): [tagName: string, event: string, method: string] => {
+const parseActionAttribute = (tag: string): [tagName: string, event: string, method: string] => {
8
const eventSep = tag.lastIndexOf(':')
9
const methodSep = Math.max(0, tag.lastIndexOf('#')) || tag.length
10
return [tag.slice(eventSep + 1, methodSep), tag.slice(0, eventSep), tag.slice(methodSep + 1) || 'handleEvent']
0 commit comments