MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / unregister

Function unregister

static/js/codemirror/codemirror.js:1446–1450  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1444 // Here we poll to unregister it when the editor is no longer in
1445 // the document, so that it can be garbage-collected.
1446 function unregister() {
1447 for (var p = d.wrapper.parentNode; p && p != document.body; p = p.parentNode) {}
1448 if (p) setTimeout(unregister, 5000);
1449 else off(window, "resize", onResize);
1450 }
1451 setTimeout(unregister, 5000);
1452
1453 on(d.input, "keyup", operation(cm, function(e) {

Callers

nothing calls this directly

Calls 1

offFunction · 0.85

Tested by

no test coverage detected