B2G/gecko/browser/devtools/styleeditor/StyleEditorChrome.jsm
/**
   * Reset the chrome UI to an empty and ready state.
   */
Reset the chrome UI to an empty and ready state.
Reset the chrome UI to an empty and ready state .
function SEC__resetChrome()
  {
    this._editors.forEach(function (aEditor) {
      aEditor.removeActionListener(this);
    }.bind(this));
    this._editors = [];
    this._view.removeAll();
    let matches = this._root.querySelectorAll("toolbarbutton,input,select");
    for (let i = 0; i < matches.length; ++i) {
      matches[i].removeAttribute("disabled");
    }
  }
function SEC__resetChrome ( ) { this . _editors . forEach ( function ( aEditor ) { aEditor . removeActionListener ( this ) ; } . bind ( this ) ) ; this . _editors = [ ] ; this . _view . removeAll ( ) ; let matches = this . _root . querySelectorAll ( "toolbarbutton,input,select" ) ; for ( let i = 0 ; i < matches . length ; ++ i ) { matches [ i ] . removeAttribute ( "disabled" ) ; } }
Reset the chrome UI to an empty and ready state.
Reset the chrome UI to an empty and ready state .
// (re)enable UI