B2G/gecko/browser/base/content/browser-tabview.js
// Adds the TabView button to the TabsToolbar.
Adds the TabView button to the TabsToolbar.
Adds the TabView button to the TabsToolbar .
function TabView__addToolbarButton() {
    let buttonId = "tabview-button";
    if (document.getElementById(buttonId))
      return;
    let toolbar = document.getElementById("TabsToolbar");
    let currentSet = toolbar.currentSet.split(",");
    let alltabsPos = currentSet.indexOf("alltabs-button");
    if (-1 == alltabsPos)
      return;
    currentSet[alltabsPos] += "," + buttonId;
    currentSet = currentSet.join(",");
    toolbar.currentSet = currentSet;
    toolbar.setAttribute("currentset", currentSet);
    document.persist(toolbar.id, "currentset");
  }
function TabView__addToolbarButton ( ) { let buttonId = "tabview-button" ; if ( document . getElementById ( buttonId ) ) return ; let toolbar = document . getElementById ( "TabsToolbar" ) ; let currentSet = toolbar . currentSet . split ( "," ) ; let alltabsPos = currentSet . indexOf ( "alltabs-button" ) ; if ( - 1 == alltabsPos ) return ; currentSet [ alltabsPos ] += "," + buttonId ; currentSet = currentSet . join ( "," ) ; toolbar . currentSet = currentSet ; toolbar . setAttribute ( "currentset" , currentSet ) ; document . persist ( toolbar . id , "currentset" ) ; }
Adds the TabView button to the TabsToolbar.
Adds the TabView button to the TabsToolbar .