(name, deflt, handle, notOnInit)
| 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 |