зеркало из https://github.com/mozilla/pjs.git
Bug 345561: remove unneeded try/catch, patch by Michael Ventnor <ventnor.bugzilla@yahoo.com.au>, r=me
This commit is contained in:
Родитель
0d1ffd38f9
Коммит
b1dc5fa12d
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче