code: void onPopupClose() {
  
          if (m_referenceElement != null) {
              CmsInlineEditOverlay.removeLastOverlay();
          }
          CmsInlineEditOverlay.updateCurrentOverlayPosition();
          if (m_entityChangeHandlerRegistration != null) {
              m_entityChangeHandlerRegistration.removeHandler();
          }
          CmsAttributeHandler.setResizeHandler(null);
          if (!m_runningUpdate) {
              if (m_hasChanges) {
                  CmsInlineEditOverlay.getRootOverlay().clearButtonPanel();
                  m_htmlUpdateHandler.reinitWidgets(m_formParent);
              }
          }
          m_popup = null;
      }
docs: Cleanup after the edit pop-up was opened.<p>