Bug 329882 - "bc has no properties console.js" [r=benjamin]

This commit is contained in:
Michael Kaply 2009-06-14 01:32:45 -07:00
parent 81ff957c42
commit 15adadc7e7

View File

@ -94,7 +94,10 @@ function updateSortCommand(aOrder)
function updateModeCommand(aMode)
{
var bc = document.getElementById("Console:mode" + aMode);
/* aMode can end up invalid if it set by an extension that replaces */
/* mode and then it is uninstalled or disabled */
var bc = document.getElementById("Console:mode" + aMode) ||
document.getElementById("Console:modeAll");
bc.setAttribute("checked", true);
}