MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / getOption

Function getOption

lib/web/CodeMirror/addon/fold/foldcode.js:145–152  ·  view source on GitHub ↗
(cm, options, name)

Source from the content-addressed store, hash-verified

143 CodeMirror.defineOption("foldOptions", null);
144
145 function getOption(cm, options, name) {
146 if (options && options[name] !== undefined)
147 return options[name];
148 var editorOptions = cm.options.foldOptions;
149 if (editorOptions && editorOptions[name] !== undefined)
150 return editorOptions[name];
151 return defaultOptions[name];
152 }
153
154 CodeMirror.defineExtension("foldOption", function(options, name) {
155 return getOption(this, options, name);

Callers 3

doFoldFunction · 0.70
makeWidgetFunction · 0.70
foldcode.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected