(cm, options, name)
| 135 | CodeMirror.defineOption("foldOptions", null); |
| 136 | |
| 137 | function getOption(cm, options, name) { |
| 138 | if (options && options[name] !== undefined) |
| 139 | return options[name]; |
| 140 | var editorOptions = cm.options.foldOptions; |
| 141 | if (editorOptions && editorOptions[name] !== undefined) |
| 142 | return editorOptions[name]; |
| 143 | return defaultOptions[name]; |
| 144 | } |
| 145 | |
| 146 | CodeMirror.defineExtension("foldOption", function(options, name) { |
| 147 | return getOption(this, options, name); |
no outgoing calls
no test coverage detected