B2G/gecko/browser/components/tabview/tabitems.js
// Takes in a xul:tab, creates a TabItem for it and adds it to the scene. 
Takes in a xul:tab, creates a TabItem for it and adds it to the scene.
Takes in a xul : tab creates a TabItem for it and adds it to the scene .
function TabItems_link(tab, options) {
    try {
      Utils.assertThrow(tab, "tab");
      Utils.assertThrow(!tab.pinned, "shouldn't be an app tab");
      Utils.assertThrow(!tab._tabViewTabItem, "shouldn't already be linked");
      new TabItem(tab, options); 
    } catch(e) {
      Utils.log(e);
    }
  }
function TabItems_link ( tab , options ) { try { Utils . assertThrow ( tab , "tab" ) ; Utils . assertThrow ( ! tab . pinned , "shouldn't be an app tab" ) ; Utils . assertThrow ( ! tab . _tabViewTabItem , "shouldn't already be linked" ) ; new TabItem ( tab , options ) ; } catch ( e ) { Utils . log ( e ) ; } }
Takes in a xul:tab, creates a TabItem for it and adds it to the scene.
Takes in a xul : tab creates a TabItem for it and adds it to the scene .
// sets tab._tabViewTabItem to itself