MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / clearMarks

Function clearMarks

static/js/codemirror/addon/lint/lint.js:45–51  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

43 }
44
45 function clearMarks(cm) {
46 var state = cm._lintState;
47 if (state.hasGutter) cm.clearGutter(GUTTER_ID);
48 for (var i = 0; i < state.marked.length; ++i)
49 state.marked[i].clear();
50 state.marked.length = 0;
51 }
52
53 function makeMarker(labels, severity, multiple) {
54 var marker = document.createElement("div"), inner = marker;

Callers 2

updateLintingFunction · 0.85
lint.jsFile · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected