(cm, options, name)
| 143 | CodeMirror.defineOption("foldOptions", null); |
| 144 | |
| 145 | function getOption(cm, options, name) { |
| 146 | if (options && options[name] !== undefined) |
| 147 | return options[name]; |
| 148 | var editorOptions = cm.options.foldOptions; |
| 149 | if (editorOptions && editorOptions[name] !== undefined) |
| 150 | return editorOptions[name]; |
| 151 | return defaultOptions[name]; |
| 152 | } |
| 153 | |
| 154 | CodeMirror.defineExtension("foldOption", function(options, name) { |
| 155 | return getOption(this, options, name); |
no outgoing calls
no test coverage detected