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