(cm)
| 10760 | } |
| 10761 | |
| 10762 | function wrappingChanged(cm) { |
| 10763 | if (cm.options.lineWrapping) { |
| 10764 | addClass(cm.display.wrapper, "CodeMirror-wrap") |
| 10765 | cm.display.sizer.style.minWidth = "" |
| 10766 | cm.display.sizerWidth = null |
| 10767 | } else { |
| 10768 | rmClass(cm.display.wrapper, "CodeMirror-wrap") |
| 10769 | findMaxLine(cm) |
| 10770 | } |
| 10771 | estimateLineHeights(cm) |
| 10772 | regChange(cm) |
| 10773 | clearCaches(cm) |
| 10774 | setTimeout(function () { |
| 10775 | return updateScrollbars(cm) |
| 10776 | }, 100) |
| 10777 | } |
| 10778 | |
| 10779 | // A CodeMirror instance represents an editor. This is the object |
| 10780 | // that user code is usually dealing with. |
nothing calls this directly
no test coverage detected