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

Method elementMatchedValue

src/core/scope_observer.ts:60–66  ·  view source on GitHub ↗
(element: Element, value: Scope)

Source from the content-addressed store, hash-verified

58 }
59
60 elementMatchedValue(element: Element, value: Scope) {
61 const referenceCount = (this.scopeReferenceCounts.get(value) || 0) + 1
62 this.scopeReferenceCounts.set(value, referenceCount)
63 if (referenceCount == 1) {
64 this.delegate.scopeConnected(value)
65 }
66 }
67
68 elementUnmatchedValue(element: Element, value: Scope) {
69 const referenceCount = this.scopeReferenceCounts.get(value)

Callers

nothing calls this directly

Calls 3

scopeConnectedMethod · 0.65
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected