function clearPaneEditorMarks(pane, markclass) {
  var paneState = state.pane[pane];
  if (!paneState.editor) {
    return;
  }
  if (!markclass) {
    for (markclass in paneState.marked) {
      if (markclass) {
        clearPaneEditorMarks(pane, markclass);
      }
    }
    return;
  }
  var list = paneState.marked[markclass];
  var session = paneState.editor.session;
  delete paneState.marked[markclass];
  if (list) {
    for (var j = 0; j < list.length; ++j) {
      session.removeMarker(list[j]);
    }
  }
}
// If no markclass is passed, clears all marks of all classes.
If no markclass is passed, clears all marks of all classes.
If no markclass is passed clears all marks of all classes .
function clearPaneEditorMarks(pane, markclass) {
  var paneState = state.pane[pane];
  if (!paneState.editor) {
    return;
  }
  if (!markclass) {
    for (markclass in paneState.marked) {
      if (markclass) {
        clearPaneEditorMarks(pane, markclass);
      }
    }
    return;
  }
  var list = paneState.marked[markclass];
  var session = paneState.editor.session;
  delete paneState.marked[markclass];
  if (list) {
    for (var j = 0; j < list.length; ++j) {
      session.removeMarker(list[j]);
    }
  }
}
function clearPaneEditorMarks ( pane , markclass ) { var paneState = state . pane [ pane ] ; if ( ! paneState . editor ) { return ; } if ( ! markclass ) { for ( markclass in paneState . marked ) { if ( markclass ) { clearPaneEditorMarks ( pane , markclass ) ; } } return ; } var list = paneState . marked [ markclass ] ; var session = paneState . editor . session ; delete paneState . marked [ markclass ] ; if ( list ) { for ( var j = 0 ; j < list . length ; ++ j ) { session . removeMarker ( list [ j ] ) ; } } }
If no markclass is passed, clears all marks of all classes.
If no markclass is passed clears all marks of all classes .