fix api for JS usage (bug 157097, r=cmanske, sr=sfraser)

git-svn-id: svn://10.0.0.236/trunk@129380 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brade%netscape.com
2002-09-12 19:10:32 +00:00
parent 5e74dffac4
commit ae67adfc0d
2 changed files with 4 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ nsCommandManager::GetCommandState(const char *aCommandName, nsICommandParams *aC
nsCOMPtr<nsICommandController> commandController = do_QueryInterface(controller);
if (commandController)
rv = commandController->GetCommandState(aCommandName,aCommandParams);
rv = commandController->GetCommandStateWithParams(aCommandName, aCommandParams);
else
rv = NS_ERROR_NOT_IMPLEMENTED;
return rv;
@@ -234,7 +234,7 @@ nsCommandManager::DoCommand(const char *aCommandName, nsICommandParams *aCommand
nsCOMPtr<nsICommandController> commandController = do_QueryInterface(controller);
if (commandController)
rv = commandController->DoCommand(aCommandName,aCommandParams);
rv = commandController->DoCommandWithParams(aCommandName, aCommandParams);
else
rv = controller->DoCommand(aCommandName);
return rv;