diff --git a/apps/common/main/lib/component/TabBar.js b/apps/common/main/lib/component/TabBar.js index a59a5a208..0018b965e 100644 --- a/apps/common/main/lib/component/TabBar.js +++ b/apps/common/main/lib/component/TabBar.js @@ -343,6 +343,8 @@ define([ this.insert(-1, this.saved); delete this.saved; + Common.Gateway.on('processmouse', _.bind(this.onProcessMouse, this)); + this.rendered = true; return this; }, @@ -362,6 +364,14 @@ define([ } }, + onProcessMouse: function(data) { + if (data.type == 'mouseup') { + var tab = this.getActive(true); + if (tab) + tab.mouseup(); + } + }, + add: function(tabs) { return this.insert(-1, tabs) > 0; },