1 define(['views/tabs/tabs'], function(tabsView) {
\r
3 return function(sandbox) {
\r
5 var view = new tabsView.View();
\r
6 view.on('leaving', function(slug) {
\r
7 sandbox.publish('leaving', slug);
\r
9 view.on('tabSelected', function(slug) {
\r
10 sandbox.publish('showed', slug);
\r
16 sandbox.publish('ready');
\r
19 getView: function() {
\r
23 addTab: function(title, slug, contentView) {
\r
24 view.addTab(title, slug, contentView);
\r
27 getCurrentSlug: function() {
\r
28 return view.selectedTab;
\r