We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 165def5 commit 032eec9Copy full SHA for 032eec9
src/ui-scripts/tab.js
@@ -48,11 +48,11 @@ var TabBase = new function()
48
this.set_badge = function(type)
49
{
50
var tab = this._get_top_tab_element();
51
- var badge = tab ? tab.querySelector(".badge") : null;
52
- if (badge)
53
- {
54
- badge.addClass(type || "");
55
- }
+ var badge = tab && tab.querySelector(".badge");
+ if (badge && type)
+ badge.addClass(type);
+ else
+ badge.className = "badge";
56
};
57
58
this.set_legend_info = function(text)
0 commit comments