B2G/gecko/browser/devtools/responsivedesign/responsivedesign.jsm
/**
   * Destroy the nodes. Remove listeners. Reset the style.
   */
Destroy the nodes. Remove listeners. Reset the style.
Destroy the nodes . Remove listeners . Reset the style .
function RUI_unload() {
    if (this.closing)
      return;
    this.closing = true;
    if (this._floatingScrollbars)
      switchToNativeScrollbars(this.tab);
    this.unCheckMenus();
    let style = "max-width: none;" +
                "min-width: 0;" +
                "max-height: none;" +
                "min-height: 0;";
    this.stack.setAttribute("style", style);
    if (this.isResizing)
      this.stopResizing();
    this.mainWindow.document.removeEventListener("keypress", this.bound_onKeypress, false);
    this.menulist.removeEventListener("select", this.bound_presetSelected, true);
    this.tab.removeEventListener("TabClose", this);
    this.tabContainer.removeEventListener("TabSelect", this);
    this.rotatebutton.removeEventListener("command", this.bound_rotate, true);
    this.addbutton.removeEventListener("command", this.bound_addPreset, true);
    this.removebutton.removeEventListener("command", this.bound_removePreset, true);
    this.container.removeChild(this.toolbar);
    this.stack.removeChild(this.resizer);
    this.stack.removeChild(this.resizeBar);
    this.container.removeAttribute("responsivemode");
    this.stack.removeAttribute("responsivemode");
    delete this.tab.__responsiveUI;
    ResponsiveUIManager.events.emit("off", this.tab, this);
  }
function RUI_unload ( ) { if ( this . closing ) return ; this . closing = true ; if ( this . _floatingScrollbars ) switchToNativeScrollbars ( this . tab ) ; this . unCheckMenus ( ) ; let style = "max-width: none;" + "min-width: 0;" + "max-height: none;" + "min-height: 0;" ; this . stack . setAttribute ( "style" , style ) ; if ( this . isResizing ) this . stopResizing ( ) ; this . mainWindow . document . removeEventListener ( "keypress" , this . bound_onKeypress , false ) ; this . menulist . removeEventListener ( "select" , this . bound_presetSelected , true ) ; this . tab . removeEventListener ( "TabClose" , this ) ; this . tabContainer . removeEventListener ( "TabSelect" , this ) ; this . rotatebutton . removeEventListener ( "command" , this . bound_rotate , true ) ; this . addbutton . removeEventListener ( "command" , this . bound_addPreset , true ) ; this . removebutton . removeEventListener ( "command" , this . bound_removePreset , true ) ; this . container . removeChild ( this . toolbar ) ; this . stack . removeChild ( this . resizer ) ; this . stack . removeChild ( this . resizeBar ) ; this . container . removeAttribute ( "responsivemode" ) ; this . stack . removeAttribute ( "responsivemode" ) ; delete this . tab . __responsiveUI ; ResponsiveUIManager . events . emit ( "off" , this . tab , this ) ; }
Destroy the nodes.
Destroy the nodes .
// Reset style of the stack. // Remove listeners. // Removed elements. // Unset the responsive mode.