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