themes/default/public/scripts/ghostdown.js
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);
    }
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);
    }
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 ) ; }
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.
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 .