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

Function getOption

static/editor.md/lib/codemirror/addon/fold/foldcode.js:137–144  ·  view source on GitHub ↗
(cm, options, name)

Source from the content-addressed store, hash-verified

135 CodeMirror.defineOption("foldOptions", null);
136
137 function getOption(cm, options, name) {
138 if (options && options[name] !== undefined)
139 return options[name];
140 var editorOptions = cm.options.foldOptions;
141 if (editorOptions && editorOptions[name] !== undefined)
142 return editorOptions[name];
143 return defaultOptions[name];
144 }
145
146 CodeMirror.defineExtension("foldOption", function(options, name) {
147 return getOption(this, options, name);

Callers 3

doFoldFunction · 0.85
makeWidgetFunction · 0.85
foldcode.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected