Bug 345561: remove unneeded try/catch, patch by Michael Ventnor <ventnor.bugzilla@yahoo.com.au>, r=me

This commit is contained in:
gavin@gavinsharp.com 2007-08-21 22:02:36 -07:00
Родитель 0d1ffd38f9
Коммит b1dc5fa12d
1 изменённых файлов: 7 добавлений и 12 удалений

Просмотреть файл

@ -2767,18 +2767,13 @@
this.setAttribute("closebuttons", "activetab");
break;
case 1:
try {
var width = this.firstChild.boxObject.width;
// 0 width is an invalid value and indicates
// an item without display, so ignore.
if (width > this.mTabClipWidth || width == 0)
this.setAttribute("closebuttons", "alltabs");
else
this.setAttribute("closebuttons", "activetab");
}
catch (e) {
// XXXzeniko what error are we catching here?
}
var width = this.firstChild.boxObject.width;
// 0 width is an invalid value and indicates
// an item without display, so ignore.
if (width > this.mTabClipWidth || width == 0)
this.setAttribute("closebuttons", "alltabs");
else
this.setAttribute("closebuttons", "activetab");
break;
case 2:
case 3: