(name, deflt, handle, notOnInit)
| 7667 | var optionHandlers = CodeMirror.optionHandlers; |
| 7668 | |
| 7669 | function option(name, deflt, handle, notOnInit) { |
| 7670 | CodeMirror.defaults[name] = deflt; |
| 7671 | if (handle) { optionHandlers[name] = |
| 7672 | notOnInit ? function (cm, val, old) {if (old != Init) { handle(cm, val, old); }} : handle; } |
| 7673 | } |
| 7674 | |
| 7675 | CodeMirror.defineOption = option; |
| 7676 |
no outgoing calls
no test coverage detected