MCPcopy
hub / github.com/ajaxorg/ace / removeMarker

Method removeMarker

src/edit_session.js:742–750  ·  view source on GitHub ↗

* Removes the marker with the specified ID. If this marker was in front, the `'changeFrontMarker'` event is emitted. If the marker was in the back, the `'changeBackMarker'` event is emitted. * @param {Number} markerId A number representing a marker

(markerId)

Source from the content-addressed store, hash-verified

740 * @param {Number} markerId A number representing a marker
741 **/
742 removeMarker(markerId) {
743 var marker = this.$frontMarkers[markerId] || this.$backMarkers[markerId];
744 if (!marker)
745 return;
746
747 var markers = marker.inFront ? this.$frontMarkers : this.$backMarkers;
748 delete (markers[markerId]);
749 this._signal(marker.inFront ? "changeFrontMarker" : "changeBackMarker");
750 }
751
752 /**
753 * Returns an object containing all of the markers, either front or back.

Callers 15

xquery.jsFile · 0.80
updateFloatFunction · 0.80
jsoniq.jsFile · 0.80
updateFloatFunction · 0.80
$highlightBracketsMethod · 0.80
onSelectionChangeMethod · 0.80
addMarkerMethod · 0.80
hideOtherMarkersMethod · 0.80
updateMarkerMethod · 0.80
detachMethod · 0.80
multi_select.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected