зеркало из https://github.com/mozilla/gecko-dev.git
Removed uneccessary hack to make toolbar buttons show checked state, b=101982, r=brade, sr=kin
This commit is contained in:
Родитель
a7c73b634a
Коммит
4e2d254f70
|
@ -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 ---------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче