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

Function option

static/mergely/lib/codemirror.js:5345–5349  ·  view source on GitHub ↗
(name, deflt, handle, notOnInit)

Source from the content-addressed store, hash-verified

5343 var optionHandlers = CodeMirror.optionHandlers = {};
5344
5345 function option(name, deflt, handle, notOnInit) {
5346 CodeMirror.defaults[name] = deflt;
5347 if (handle) optionHandlers[name] =
5348 notOnInit ? function(cm, val, old) {if (old != Init) handle(cm, val, old);} : handle;
5349 }
5350
5351 // Passed to option handlers when there is no old value.
5352 var Init = CodeMirror.Init = {toString: function(){return "CodeMirror.Init";}};

Callers 1

codemirror.jsFile · 0.70

Calls 1

handleFunction · 0.85

Tested by

no test coverage detected