We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2522a5a commit f4bed31Copy full SHA for f4bed31
1 file changed
src/bind.ts
@@ -94,10 +94,11 @@ function* bindings(el: Element): Iterable<Binding> {
94
for (const action of (el.getAttribute('data-action') || '').trim().split(/\s+/)) {
95
const eventSep = action.lastIndexOf(':')
96
const methodSep = action.lastIndexOf('#')
97
- const type = action.slice(0, eventSep)
98
- const tag = action.slice(eventSep + 1, methodSep)
99
- const method = action.slice(methodSep + 1)
100
- yield {type, tag, method}
+ yield {
+ type: action.slice(0, eventSep),
+ tag: action.slice(eventSep + 1, methodSep),
+ method: action.slice(methodSep + 1)
101
+ }
102
}
103
104
0 commit comments