MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / option

Function option

static/js/codemirror/codemirror.js:2929–2933  ·  view source on GitHub ↗
(name, deflt, handle, notOnInit)

Source from the content-addressed store, hash-verified

2927 var defaults = CodeMirror.defaults = {};
2928
2929 function option(name, deflt, handle, notOnInit) {
2930 CodeMirror.defaults[name] = deflt;
2931 if (handle) optionHandlers[name] =
2932 notOnInit ? function(cm, val, old) {if (old != Init) handle(cm, val, old);} : handle;
2933 }
2934
2935 var Init = CodeMirror.Init = {toString: function(){return "CodeMirror.Init";}};
2936

Callers 1

codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected