()
| 2389 | // When the window resizes, we need to refresh active editors. |
| 2390 | var resizeTimer; |
| 2391 | function onResize() { |
| 2392 | if (resizeTimer == null) resizeTimer = setTimeout(function() { |
| 2393 | resizeTimer = null; |
| 2394 | // Might be a text scaling operation, clear size caches. |
| 2395 | d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = knownScrollbarWidth = null; |
| 2396 | cm.setSize(); |
| 2397 | }, 100); |
| 2398 | } |
| 2399 | on(window, "resize", onResize); |
| 2400 | // The above handler holds on to the editor and its data |
| 2401 | // structures. Here we poll to unregister it when the editor is no |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…