possible bug with $tabs.data('selected.tabs');
I have found, what is to me, some odd behaviour when trying to find
the index of the selected tab. Here is the scenario:
1. Dynamically open 3 tabs
2. Close the first tab
3. Select either what is now the first or the second tab and trigger
an event within that tab
4. Within the code for that event, call $tabs.data('selected.tabs');
For the first tab, I would expect this to return 0 and for the second,
1. Instead, it returns 1 and 2 respectively.
Is this the expected behaviour?
Chris