rem:  var result = CheckAndSaveDocument(window.editorShell.GetString("BeforeClosing")); if (result == true) 
add:   if (CheckAndSaveDocument(window.editorShell.GetString("BeforeClosing"), true)) 
context: function CloseWindow(){  FinishHTMLSource();  // Close window; check to make sure document is saved  var result = CheckAndSaveDocument(window.editorShell.GetString("BeforeClosing"));  if (result == true) // If they saved the document, or it is unchanged, exit  {    if (window.InsertCharWindow)      SwitchInsertCharToAnotherEditorOrClose();    window.editorShell.CloseWindowWithoutSaving();  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/49bc32c783f8e8fbf15d440f1587990451b05b6f/ComposerCommands.js/clean/editor/ui/composer/content/ComposerCommands.js