rem: return CheckAndSaveDocument(GetString("BeforeClosing")); 
add: var canClose = CheckAndSaveDocument(GetString("BeforeClosing"));      if (canClose && window.InsertCharWindow) SwitchInsertCharToAnotherEditorOrClose();  return canClose; 
context: function EditorCanClose(){  // Returns FALSE only if user cancels save action  dump("Calling EditorCanClose\n");  return CheckAndSaveDocument(GetString("BeforeClosing"));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5eafc0feeb5eafc3a8dec8ecd2e935e7be206733/editor.js/clean/editor/ui/composer/content/editor.js