mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Bug 345561: remove unneeded try/catch, patch by Michael Ventnor <ventnor.bugzilla@yahoo.com.au>, r=me
This commit is contained in:
parent
a976fa9afd
commit
4988e2493e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user