remove extra braces and return
This commit is contained in:
rginda%netscape.com 2001-10-18 10:59:47 +00:00
Родитель 82e1e81ee2
Коммит 2ed2fb7f32
2 изменённых файлов: 0 добавлений и 8 удалений

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

@ -91,10 +91,7 @@ function bov_scrollto (line, align)
/* all rows are visible, nothing to scroll */
if (first == 0 && last > this.rowCount)
{
dd ("scrollTo: view does not overflow");
return;
}
/* outliner lines are 0 based, we accept one based lines, deal with it */
--line;
@ -110,7 +107,6 @@ function bov_scrollto (line, align)
if (line > this.rowCount - viz) /* overscroll, can't put a row from */
line = this.rowCount - viz; /* last page at the top. */
this.outliner.scrollToRow(line);
return;
}
else if (align > 0)
{

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

@ -91,10 +91,7 @@ function bov_scrollto (line, align)
/* all rows are visible, nothing to scroll */
if (first == 0 && last > this.rowCount)
{
dd ("scrollTo: view does not overflow");
return;
}
/* outliner lines are 0 based, we accept one based lines, deal with it */
--line;
@ -110,7 +107,6 @@ function bov_scrollto (line, align)
if (line > this.rowCount - viz) /* overscroll, can't put a row from */
line = this.rowCount - viz; /* last page at the top. */
this.outliner.scrollToRow(line);
return;
}
else if (align > 0)
{