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

Function bind

internal/driver/html/common.js:366–373  ·  view source on GitHub ↗
(event, elem, fn)

Source from the content-addressed store, hash-verified

364
365 // Bind event on elem to fn.
366 function bind(event, elem, fn) {
367 if (elem == null) return;
368 elem.addEventListener(event, fn);
369 if (event == 'click') {
370 // Also enable via touch.
371 elem.addEventListener('touchstart', fn);
372 }
373 }
374
375 bind('click', elem('save-config'), showSaveDialog);
376 bind('click', elem('save-cancel'), cancelDialog);

Callers 1

initConfigManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…