Permalink
Browse files

Fixed DFL-3627: Exception on canceling remote connection.

  • Loading branch information...
1 parent d114ba0 commit 6439efb29329d1a546d010b07b765680e42a1ad4 @hzr hzr committed with chriskr Sep 28, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/ui-scripts/tab.js
@@ -49,7 +49,10 @@ var TabBase = new function()
{
var tab = this._get_top_tab_element();
var badge = tab && tab.querySelector(".badge");
- if (badge && type)
+ if (!badge)
+ return;
+
+ if (type)
badge.addClass(type);
else
badge.className = "badge";

0 comments on commit 6439efb

Please sign in to comment.