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

Function clearSearch

Lib/profiling/sampling/_flamegraph_assets/flamegraph.js:717–733  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

715}
716
717function clearSearch() {
718 const searchInput = document.getElementById("search-input");
719 const searchWrapper = document.querySelector(".search-wrapper");
720 if (searchInput) {
721 searchInput.value = "";
722 searchInput.classList.remove("has-matches", "no-matches");
723 if (searchWrapper) {
724 searchWrapper.classList.remove("has-value");
725 }
726 // Clear highlights
727 d3.selectAll("#chart rect")
728 .classed("search-match", false)
729 .classed("search-dim", false);
730 // Clear active hotspot
731 document.querySelectorAll('.hotspot').forEach(h => h.classList.remove('active'));
732 }
733}
734
735// ============================================================================
736// Resize Handler

Callers 1

searchForHotspotFunction · 0.85

Calls 2

getElementByIdMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…