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

Function commitDelete

internal/driver/html/common.js:346–363  ·  view source on GitHub ↗
(e, elem)

Source from the content-addressed store, hash-verified

344 }
345
346 function commitDelete(e, elem) {
347 if (!currentDeleteTarget) return;
348 const config = currentDeleteTarget.dataset.config;
349 const url = new URL('./deleteconfig', document.URL);
350 url.searchParams.set('config', config);
351 delError.innerText = '';
352 sendURL('DELETE', url, (ok) => {
353 if (!ok) {
354 delError.innerText = 'Delete failed';
355 return;
356 }
357 showDialog(null);
358 // Remove menu entry for this config.
359 if (currentDeleteTarget && currentDeleteTarget.parentElement) {
360 currentDeleteTarget.parentElement.remove();
361 }
362 });
363 }
364
365 // Bind event on elem to fn.
366 function bind(event, elem, fn) {

Callers

nothing calls this directly

Calls 3

sendURLFunction · 0.85
showDialogFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…