Adding a callback for closing the tab
Adding a callback for closing the tab

Users of ui.tabs.closable may want the option of providing a callback
function to determine whether or not it's right to close the tab based
on an application's policies. If no call back is provided the
functionality remains the same as before.

andrewwatts/ui.tabs.closable