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

Method set

src/core/data_map.ts:24–28  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

22 }
23
24 set(key: string, value: string): string | null {
25 const name = this.getAttributeNameForKey(key)
26 this.element.setAttribute(name, value)
27 return this.get(key)
28 }
29
30 has(key: string): boolean {
31 const name = this.getAttributeNameForKey(key)

Callers 15

karma.conf.cjsFile · 0.45
warnMethod · 0.45
fetchEventListenerMethod · 0.45
fetchContextForScopeMethod · 0.45
connectModuleMethod · 0.45
setFunction · 0.45
connectActionMethod · 0.45
elementMatchedValueMethod · 0.45

Calls 3

getMethod · 0.95
setAttributeMethod · 0.80

Tested by

no test coverage detected