(function(){ DashboardTab = function (config){ //---------------------------------------------------------------// //----------------------Member Variables-------------------------// //---------------------------------------------------------------// //This variable will store the global reference for this class within its context var go_this = this; var dashboardBtn,dashboardBody = config.cont; var layoutManager = new TabLayoutManager(config); var interactionManager; function init(config){ //create the components required for the Tab layoutManager.createComponents(dashboardBody, config); interactionManager = new TabInteractionManager(config); }//function init //----------------------- Public Function -----------------------------// this.hide = function (){ dashboardBody.hide(); }; this.show = function (){ dashboardBody.show(); }; /* this.select = function (){ dashboardBtn.addClass('selected'); }; this.unselect = function (){ dashboardBtn.removeClass('selected'); }; */ init(config); return this; };//DashboardTab = function })();//anonym function -- IFFE