B2G/gecko/browser/devtools/responsivedesign/responsivedesign.jsm
/**
   * remove a preset from the list and the memory
   */
remove a preset from the list and the memory
remove a preset from the list and the memory
function RUI_removePreset() {
    let selectedPreset = this.menuitems.get(this.selectedItem);
    let w = selectedPreset.width;
    let h = selectedPreset.height;
    this.presets.splice(this.presets.indexOf(selectedPreset), 1);
    this.menulist.firstChild.removeChild(this.selectedItem);
    this.menuitems.delete(this.selectedItem);
    this.customPreset.width = w;
    this.customPreset.height = h;
    let menuitem = this.customMenuitem;
    this.setMenuLabel(menuitem, this.customPreset);
    this.menulist.selectedItem = menuitem;
    this.currentPresetKey = this.customPreset.key;
    this.setSize(w, h);
    this.savePresets();
  }
function RUI_removePreset ( ) { let selectedPreset = this . menuitems . get ( this . selectedItem ) ; let w = selectedPreset . width ; let h = selectedPreset . height ; this . presets . splice ( this . presets . indexOf ( selectedPreset ) , 1 ) ; this . menulist . firstChild . removeChild ( this . selectedItem ) ; this . menuitems . delete ( this . selectedItem ) ; this . customPreset . width = w ; this . customPreset . height = h ; let menuitem = this . customMenuitem ; this . setMenuLabel ( menuitem , this . customPreset ) ; this . menulist . selectedItem = menuitem ; this . currentPresetKey = this . customPreset . key ; this . setSize ( w , h ) ; this . savePresets ( ) ; }
remove a preset from the list and the memory
remove a preset from the list and the memory