+ constructor: function (config) {
+ this.addEvents(
+ 'aftermenu',
+ 'beforemenu');
+
+ this.mixins.observable.constructor.call(this, config);
+ },
+
+ init : function(tabpanel){
+ this.tabPanel = tabpanel;
+ this.tabBar = tabpanel.down("tabbar");
+
+ this.mon(this.tabPanel, {
+ scope: this,
+ afterlayout: this.onAfterLayout,
+ single: true
+ });
+ },
+
+ onAfterLayout: function() {
+ this.mon(this.tabBar.el, {