2 $.fn.Tabs = function( method ) {
3 // In Bootstrap 3, we need 'shown.bs.tab' instead of 'shown'
4 // see: http://bootply.com/bootstrap-3-migration-guide
5 $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
6 // find the plugin object inside the tab content referenced by the current tabs
7 $('.plugin', $($(e.target).attr('href'))).trigger('show');