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:
parent
7abbc079f7
commit
25506c920e
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user