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

Function SharedTextMarker

static/js/codemirror/codemirror.js:3513–3520  ·  view source on GitHub ↗
(markers, primary)

Source from the content-addressed store, hash-verified

3511 // SHARED TEXTMARKERS
3512
3513 function SharedTextMarker(markers, primary) {
3514 this.markers = markers;
3515 this.primary = primary;
3516 for (var i = 0, me = this; i < markers.length; ++i) {
3517 markers[i].parent = this;
3518 on(markers[i], "clear", function(){me.clear();});
3519 }
3520 }
3521 CodeMirror.SharedTextMarker = SharedTextMarker;
3522
3523 SharedTextMarker.prototype.clear = function() {

Callers

nothing calls this directly

Calls 2

onFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected