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-22 05:06:04 +00:00
Родитель 49ed8b6128
Коммит c07f8b0a67
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: