зеркало из https://github.com/mozilla/pjs.git
Remove unused nsNewEditorCommand, b=106728, r=hewitt, sr=kin
This commit is contained in:
Родитель
4407e25bb0
Коммит
a92530ea14
|
@ -163,7 +163,6 @@ function SetupComposerWindowCommands()
|
|||
}
|
||||
|
||||
// File-related commands
|
||||
commandManager.registerCommand("cmd_newEditor", nsNewEditorCommand);
|
||||
commandManager.registerCommand("cmd_open", nsOpenCommand);
|
||||
commandManager.registerCommand("cmd_save", nsSaveCommand);
|
||||
commandManager.registerCommand("cmd_saveAs", nsSaveAsCommand);
|
||||
|
@ -488,20 +487,6 @@ function CloseWindow()
|
|||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------------
|
||||
var nsNewEditorCommand =
|
||||
{
|
||||
isCommandEnabled: function(aCommand, dummy)
|
||||
{
|
||||
return true; // we can always do this
|
||||
},
|
||||
|
||||
doCommand: function(aCommand)
|
||||
{
|
||||
NewEditorWindow();
|
||||
}
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------------
|
||||
var nsOpenRemoteCommand =
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче