title: Tabs event clicking on active tab
body: <p>I'm using jquery ui tabs and was wondering if there is an event for when you click on an active tab (or any tab).</p>
  
  <p>I have tried the <code>activate</code> and <code>beforeActive</code> but these only seem to fire when a non active tab is clicked on (see following code)</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$("#tabs").tabs({
    beforeActivate: function(event, ui) {
      console.log('beforeActivate')
    },
    activate: function(event, ui) {
      console.log('activate')
    }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css"&gt;
  &lt;div id="tabs" class="ui-layout-center"&gt;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;a href="#tab-1"&gt;Tab #1&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;a href="#tab-2"&gt;Tab #1&lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;div id="tab-container"&gt;
      &lt;div id="tab-1"&gt;
        tab 1!
      &lt;/div&gt;
      &lt;div id="tab-2"&gt;
        tab 2!
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What I'm attempting to do is toggle a class on the ul when the active li is clicked.  Can this be done using the tabs extra events as I am trying not to to add a separate click event outside the ui methods</p>