MCPcopy Create free account
hub / github.com/breck7/scroll / option

Function option

external/.scrollLibs.js:10471–10482  ·  view source on GitHub ↗
(name, deflt, handle, notOnInit)

Source from the content-addressed store, hash-verified

10469 var optionHandlers = CodeMirror.optionHandlers
10470
10471 function option(name, deflt, handle, notOnInit) {
10472 CodeMirror.defaults[name] = deflt
10473 if (handle) {
10474 optionHandlers[name] = notOnInit
10475 ? function (cm, val, old) {
10476 if (old != Init) {
10477 handle(cm, val, old)
10478 }
10479 }
10480 : handle
10481 }
10482 }
10483
10484 CodeMirror.defineOption = option
10485

Callers 3

configureMouseFunction · 0.85
defineOptionsFunction · 0.85
_stringOrFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected