code: function unregister() {
        for (var p = d.wrapper.parentNode; p && p != document.body; p = p.parentNode) {}
        if (p) setTimeout(unregister, 5000);
        else off(window, "resize", onResize);
      }
docs: Above handler holds on to the editor and its data structures. Here we poll to unregister it when the editor is no longer in the document, so that it can be garbage-collected.