Removed uneccessary hack to make toolbar buttons show checked state, b=101982, r=brade, sr=kin

This commit is contained in:
cmanske%netscape.com 2001-11-22 01:15:09 +00:00
Родитель a7c73b634a
Коммит 4e2d254f70
1 изменённых файлов: 0 добавлений и 8 удалений

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

@ -1969,10 +1969,6 @@ function onButtonUpdate(button, commmandID)
var commandNode = document.getElementById(commmandID);
var state = commandNode.getAttribute("state");
button.checked = state == "true";
// XXX why doesn't button.checked make the right thing happen here?
// Did it ever?
button.setAttribute("checked", state);
}
//--------------------------------------------------------------------
@ -1982,10 +1978,6 @@ function onStateButtonUpdate(button, commmandID, onState)
var state = commandNode.getAttribute("state");
button.checked = state == onState;
// XXX why doesn't button.checked make the right thing happen here?
// Did it ever?
button.setAttribute("checked", state == onState);
}
// --------------------------- Status calls ---------------------------