X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0214643f72c6aaa8e85eaba2ad27f2ca03ca6401..9088c2ab96934ee0318e55dadf3573f3325201ff:/modules/tabsManager.js diff --git a/modules/tabsManager.js b/modules/tabsManager.js deleted file mode 100644 index 70058a9..0000000 --- a/modules/tabsManager.js +++ /dev/null @@ -1,33 +0,0 @@ -define(['views/tabs/tabs'], function(tabsView) { - -return function(sandbox) { - - var view = new tabsView.View(); - view.on('leaving', function(slug) { - sandbox.publish('leaving', slug); - }); - view.on('tabSelected', function(slug) { - sandbox.publish('showed', slug); - }); - - return { - start: function() { - view.render(); - sandbox.publish('ready'); - }, - - getView: function() { - return view.$el; - }, - - addTab: function(title, slug, contentView) { - view.addTab(title, slug, contentView); - - }, - getCurrentSlug: function() { - return view.selectedTab; - } - } -}; - -}); \ No newline at end of file