B2G/gecko/browser/devtools/styleinspector/test/head.js
/**
   * Destroy the style panel, remove listeners etc.
   */
Destroy the style panel, remove listeners etc.
Destroy the style panel remove listeners etc .
function SI_destroy()
  {
    this.panel.hidePopup();
    if (this.cssHtmlTree) {
      this.cssHtmlTree.destroy();
      delete this.cssHtmlTree;
    }
    if (this.iframe) {
      this.iframe.parentNode.removeChild(this.iframe);
      delete this.iframe;
    }
    delete this.cssLogic;
    this.panel.removeEventListener("popupshown", this._boundPopupShown, false);
    delete this._boundPopupShown;
    this.panel.parentNode.removeChild(this.panel);
    delete this.panel;
    delete this.doc;
    delete this.win;
    delete CssHtmlTree.win;
  }
function SI_destroy ( ) { this . panel . hidePopup ( ) ; if ( this . cssHtmlTree ) { this . cssHtmlTree . destroy ( ) ; delete this . cssHtmlTree ; } if ( this . iframe ) { this . iframe . parentNode . removeChild ( this . iframe ) ; delete this . iframe ; } delete this . cssLogic ; this . panel . removeEventListener ( "popupshown" , this . _boundPopupShown , false ) ; delete this . _boundPopupShown ; this . panel . parentNode . removeChild ( this . panel ) ; delete this . panel ; delete this . doc ; delete this . win ; delete CssHtmlTree . win ; }
Destroy the style panel, remove listeners etc.
Destroy the style panel remove listeners etc .