(name, deflt, handle, notOnInit)
| 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 |
no outgoing calls
no test coverage detected