Adding test for command enable state when calling a command. Part of fix for 38875. r=sfraser, a=ben
git-svn-id: svn://10.0.0.236/trunk@74049 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -62,7 +62,7 @@ function goDoCommand(command)
|
||||
{
|
||||
var controller = top.document.commandDispatcher.getControllerForCommand(command);
|
||||
|
||||
if ( controller )
|
||||
if ( controller && controller.isCommandEnabled(command))
|
||||
controller.doCommand(command);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user