Fix 61707: strict js warnings in scrollbarBindings.xml. r=jag sr=alecf

This commit is contained in:
blakeross%telocity.com 2000-12-05 21:52:59 +00:00
Родитель 68cf67e019
Коммит 6e7d62406a
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -13,21 +13,23 @@
try {
var scrollbarStyle = this.boxObject.getLookAndFeelMetric("scrollbarStyle");
var thumbStyle = this.boxObject.getLookAndFeelMetric("thumbStyle");
var downTop;
var upBottom;
if ( scrollbarStyle == "double" ) {
var downTop = this.findNodeByAttribute("sbattr", "scrollbar-down-top");
var upBottom = this.findNodeByAttribute("sbattr", "scrollbar-up-bottom");
downTop = this.findNodeByAttribute("sbattr", "scrollbar-down-top");
upBottom = this.findNodeByAttribute("sbattr", "scrollbar-up-bottom");
downTop.removeAttribute("collapsed");
upBottom.removeAttribute("collapsed");
}
else if ( scrollbarStyle == "doubletop" ) {
var downTop = this.findNodeByAttribute("sbattr", "scrollbar-down-top");
downTop = this.findNodeByAttribute("sbattr", "scrollbar-down-top");
var downBottom = this.findNodeByAttribute("sbattr", "scrollbar-down-bottom");
downTop.removeAttribute("collapsed");
downBottom.setAttribute("collapsed","true");
}
else if ( scrollbarStyle == "doublebottom" ) {
var upTop = this.findNodeByAttribute("sbattr", "scrollbar-up-top");
var upBottom = this.findNodeByAttribute("sbattr", "scrollbar-up-bottom");
upBottom = this.findNodeByAttribute("sbattr", "scrollbar-up-bottom");
upTop.setAttribute("collapsed","true");
upBottom.removeAttribute("collapsed");
}