Tabs: how to get index of removed tab?

Tabs: how to get index of removed tab?


Hello,
is there a way to get the index of a removed tab?
When i use ui.index in the remove event it returns -1.
Is it correct that the remove event is fired after the tab is removed?
I tried setting a variable to the index in the select event and then
removing that tab, but since another tab gets selected when i remove a
tab the variable is set to the index of the new selected tab.
Thanks for help in advance,
Dirk