MCPcopy Create free account
hub / github.com/idank/explainshell / clear

Function clear

explainshell/web/static/js/es.js:951–960  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

949// clear the canvas of all lines and unbind any hover events
950// previously set for oldgroup
951function clear() {
952 document.getElementById('canvas').innerHTML = '';
953
954 if (prevselector) {
955 prevselector
956 .add(helpselector(prevselector))
957 .unbind('mouseenter mouseleave');
958 prevselector = null;
959 }
960}
961
962// very simple adjustment of the command div font size so it doesn't overflow
963function adjustcommandfontsize() {

Callers 2

drawgrouplinesFunction · 0.85
drawvisibleFunction · 0.85

Calls 2

helpselectorFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected