MCPcopy Create free account
hub / github.com/google/pprof / showMenu

Function showMenu

internal/driver/html/common.js:235–242  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

233 if (hdr == null) return;
234 if (hdr.classList.contains('disabled')) return;
235 function showMenu(e) {
236 // menu is a child of hdr, so this event can fire for clicks
237 // inside menu. Ignore such clicks.
238 if (e.target.parentElement != hdr) return;
239 activeMenu = menu;
240 activeMenuHdr = hdr;
241 menu.style.display = 'block';
242 }
243 hdr.addEventListener('mousedown', showMenu);
244 hdr.addEventListener('touchstart', showMenu);
245 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…