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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d84a79276976e818bcfcb81a7d5090f53966ea8f/ComposerCommands.js/clean/editor/ui/composer/content/ComposerCommands.js