Bug 353033 - regression: Edit->Delete and Edit->Switch Text Direction are always enabled. r=mconnor.

git-svn-id: svn://10.0.0.236/trunk@211951 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.mano%sent.com 2006-09-18 19:47:49 +00:00
parent 7abbc079f7
commit 25506c920e

View File

@ -116,14 +116,15 @@ var CommandUpdater = {
* The name of the command to update the XUL <command> element for
*/
updateCommand: function(command) {
var controller = this._getControllerForCommand(command);
if (!controller)
return;
var enabled = false;
try {
this.enableCommand(command, controller.isCommandEnabled(command));
}
catch (e) {
var controller = this._getControllerForCommand(command);
if (controller)
enabled = controller.isCommandEnabled(command);
}
catch(ex) { }
this.enableCommand(command, enabled);
},
/**