code: function removeTab(_tab)
          {
              lxTabs.tabs.splice(_tab.index, 1);
  
              angular.forEach(lxTabs.tabs, function(tab, index)
              {
                  tab.index = index;
              });
  
              if (lxTabs.activeTab === 0)
              {
                  timer3 = $timeout(function()
                  {
                      setIndicatorPosition();
                  });
              }
              else
              {
                  setActiveTab(lxTabs.tabs[0]);
              }
          }
docs: //////////