MCPcopy
hub / github.com/hotwired/stimulus / handleEvent

Method handleEvent

src/core/binding.ts:31–36  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

29 }
30
31 handleEvent(event: Event) {
32 const actionEvent = this.prepareActionEvent(event)
33 if (this.willBeInvokedByEvent(event) && this.applyEventModifiers(actionEvent)) {
34 this.invokeWithEvent(actionEvent)
35 }
36 }
37
38 get eventName(): string {
39 return this.action.eventName

Callers

nothing calls this directly

Calls 4

prepareActionEventMethod · 0.95
willBeInvokedByEventMethod · 0.95
applyEventModifiersMethod · 0.95
invokeWithEventMethod · 0.95

Tested by

no test coverage detected