MCPcopy Index your code
hub / github.com/python/cpython / handleNavigationClick

Function handleNavigationClick

Lib/profiling/sampling/_heatmap_assets/heatmap.js:103–118  ·  view source on GitHub ↗
(button, e)

Source from the content-addressed store, hash-verified

101// ============================================================================
102
103function handleNavigationClick(button, e) {
104 e.stopPropagation();
105
106 const navData = button.getAttribute('data-nav');
107 if (navData) {
108 window.location.href = JSON.parse(navData).link;
109 return;
110 }
111
112 const navMulti = button.getAttribute('data-nav-multi');
113 if (navMulti) {
114 const items = JSON.parse(navMulti);
115 const title = button.classList.contains('caller') ? 'Choose a caller:' : 'Choose a callee:';
116 showNavigationMenu(button, items, title);
117 }
118}
119
120function scrollToTargetLine() {
121 if (!window.location.hash) return;

Callers 1

heatmap.jsFile · 0.85

Calls 4

showNavigationMenuFunction · 0.85
getAttributeMethod · 0.80
parseMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…