152553 - "Show Anonymous Content" menu item doesn't reflect the true state because we were checking |false != null| or |true != null| to determine state.

r=timeless sr=bzbarsky
This commit is contained in:
caillon%returnzero.com 2002-09-02 00:03:43 +00:00
Родитель 0c002d6e16
Коммит 33dff8528e
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -193,7 +193,7 @@ DOMViewer.prototype =
{
var val = aExplicit ? aValue : !this.mDOMView.showAnonymousContent;
this.mDOMView.showAnonymousContent = val;
this.mPanel.panelset.setCommandAttribute("cmd:toggleAnon", "checked", val != null);
this.mPanel.panelset.setCommandAttribute("cmd:toggleAnon", "checked", val);
PrefUtils.setPref("inspector.dom.showAnon", val);
},
@ -201,7 +201,7 @@ DOMViewer.prototype =
{
var val = aExplicit ? aValue : !this.mDOMView.showSubDocuments;
this.mDOMView.showSubDocuments = val;
this.mPanel.panelset.setCommandAttribute("cmd:toggleSubDocs", "checked", val != null);
this.mPanel.panelset.setCommandAttribute("cmd:toggleSubDocs", "checked", val);
},
toggleAttributes: function(aExplicit, aValue)