MCPcopy Create free account
hub / github.com/TruthHun/BookStack / parseOptions

Function parseOptions

static/editor.md/lib/codemirror/addon/fold/foldgutter.js:44–50  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

42 }
43
44 function parseOptions(opts) {
45 if (opts === true) opts = {};
46 if (opts.gutter == null) opts.gutter = "CodeMirror-foldgutter";
47 if (opts.indicatorOpen == null) opts.indicatorOpen = "CodeMirror-foldgutter-open";
48 if (opts.indicatorFolded == null) opts.indicatorFolded = "CodeMirror-foldgutter-folded";
49 return opts;
50 }
51
52 function isFolded(cm, line) {
53 var marks = cm.findMarksAt(Pos(line));

Callers 1

foldgutter.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected