MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / handle

Function handle

src/common/ui/index.js:131–137  ·  view source on GitHub ↗
(el, value, oldValue)

Source from the content-addressed store, hash-verified

129
130function vFocusFactory() {
131 const handle = (el, value, oldValue) => {
132 if (value === oldValue) return;
133 if (value == null || value) {
134 el.tabIndex = -1;
135 el.focus();
136 }
137 };
138 return {
139 mounted(el, binding) {
140 handle(el, binding.value, {});

Callers 8

mountedFunction · 0.70
updatedFunction · 0.70
onHandleFunction · 0.50
decodeValueFunction · 0.50
handlers.jsFile · 0.50
emitMethod · 0.50
batchHandleFunction · 0.50
string.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected