public/js/vendor/codemirror3/addon/merge/merge.js
function clearMarks(editor, arr, classes) {
    for (var i = 0; i < arr.length; ++i) {
      var mark = arr[i];
      if (mark instanceof CodeMirror.TextMarker) {
        mark.clear();
      } else {
        editor.removeLineClass(mark, "background", classes.chunk);
        editor.removeLineClass(mark, "background", classes.start);
        editor.removeLineClass(mark, "background", classes.end);
      }
    }
    arr.length = 0;
  }
function clearMarks(editor, arr, classes) {
    for (var i = 0; i < arr.length; ++i) {
      var mark = arr[i];
      if (mark instanceof CodeMirror.TextMarker) {
        mark.clear();
      } else {
        editor.removeLineClass(mark, "background", classes.chunk);
        editor.removeLineClass(mark, "background", classes.start);
        editor.removeLineClass(mark, "background", classes.end);
      }
    }
    arr.length = 0;
  }
function clearMarks ( editor , arr , classes ) { for ( var i = 0 ; i < arr . length ; ++ i ) { var mark = arr [ i ] ; if ( mark instanceof CodeMirror . TextMarker ) { mark . clear ( ) ; } else { editor . removeLineClass ( mark , "background" , classes . chunk ) ; editor . removeLineClass ( mark , "background" , classes . start ) ; editor . removeLineClass ( mark , "background" , classes . end ) ; } } arr . length = 0 ; }
Updating the marks for editor content
Updating the marks for editor content