rem: if (CheckAndSaveDocument(GetString("BeforeClosing"), true)) 
add: if (CheckAndSaveDocument("cmd_close", true)) 
context: function CloseWindow(){  // Check to make sure document is saved. "true" means allow "Don't Save" button,  //   so user can choose to close without saving  if (CheckAndSaveDocument(GetString("BeforeClosing"), true))   {    if (window.InsertCharWindow)      SwitchInsertCharToAnotherEditorOrClose();    window.editorShell.CloseWindowWithoutSaving();  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d91b053f419d4d0175bdb25deed21f7800ac5c27/ComposerCommands.js/buggy/editor/ui/composer/content/ComposerCommands.js