this.nodes.tabBar.find('.active').removeClass('active');\r
this.nodes.tabBar.find('a[href="#'+slug+'"]').parent().addClass('active');\r
\r
+ var prevSlug = this.selectedTab;\r
this.selectedTab = slug;\r
- this.trigger('tabSelected', slug);\r
+ this.trigger('tabSelected', {slug: slug, prevSlug: prevSlug});\r
}\r
},\r
\r
return this.$el;\r
},\r
\r
+ getCurrentSlug: function() {\r
+ return this.selectedTab;\r
+ },\r
+ \r
/* Events */\r
\r
_onTabTitleClicked: function(e) {\r