MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onclick

Function onclick

src/handlers/quickToolsInit.js:152–165  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

150}
151
152function onclick(e) {
153 reset();
154
155 if (e.target.disabled) {
156 e.preventDefault();
157 e.stopPropagation();
158 return;
159 }
160
161 e.preventDefault();
162 e.stopPropagation();
163 click(e.target);
164 clearTimeout(timeout);
165}
166
167function touchstart(e) {
168 reset();

Callers

nothing calls this directly

Calls 4

resetFunction · 0.70
clickFunction · 0.70
preventDefaultMethod · 0.45
stopPropagationMethod · 0.45

Tested by

no test coverage detected