зеркало из https://github.com/mozilla/gecko-dev.git
Bug 353033 - regression: Edit->Delete and Edit->Switch Text Direction are always enabled. r=mconnor.
This commit is contained in:
Родитель
dece182e1d
Коммит
61d7d6c7d7
|
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче