src/UI/edit.js
function destroyEditOverlay() {
  if (overlay) {
    overlay.parentNode.removeChild(overlay);
    overlay = null;
  }

  document.removeEventListener('click', handleDocumentClick);
  document.removeEventListener('keyup', handleDocumentKeyup);
  document.removeEventListener('mousedown', handleDocumentMousedown);
  document.removeEventListener('mousemove', handleDocumentMousemove);
  document.removeEventListener('mouseup', handleDocumentMouseup);
  enableUserSelect();
}
function destroyEditOverlay() {
  if (overlay) {
    overlay.parentNode.removeChild(overlay);
    overlay = null;
  }

  document.removeEventListener('click', handleDocumentClick);
  document.removeEventListener('keyup', handleDocumentKeyup);
  document.removeEventListener('mousedown', handleDocumentMousedown);
  document.removeEventListener('mousemove', handleDocumentMousemove);
  document.removeEventListener('mouseup', handleDocumentMouseup);
  enableUserSelect();
}
function destroyEditOverlay ( ) { if ( overlay ) { overlay . parentNode . removeChild ( overlay ) ; overlay = null ; } document . removeEventListener ( 'click' , handleDocumentClick ) ; document . removeEventListener ( 'keyup' , handleDocumentKeyup ) ; document . removeEventListener ( 'mousedown' , handleDocumentMousedown ) ; document . removeEventListener ( 'mousemove' , handleDocumentMousemove ) ; document . removeEventListener ( 'mouseup' , handleDocumentMouseup ) ; enableUserSelect ( ) ; }
Destroy the edit overlay if it exists.
Destroy the edit overlay if it exists .