()
| 1620 | |
| 1621 | var resizeTimer; |
| 1622 | function onResize() { |
| 1623 | if (resizeTimer == null) resizeTimer = setTimeout(function() { |
| 1624 | resizeTimer = null; |
| 1625 | // Might be a text scaling operation, clear size caches. |
| 1626 | d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = knownScrollbarWidth = null; |
| 1627 | clearCaches(cm); |
| 1628 | runInOp(cm, bind(regChange, cm)); |
| 1629 | }, 100); |
| 1630 | } |
| 1631 | on(window, "resize", onResize); |
| 1632 | // Above handler holds on to the editor and its data structures. |
| 1633 | // Here we poll to unregister it when the editor is no longer in |
nothing calls this directly
no test coverage detected