rem: if (canClose && window.InsertCharWindow) 
add: if (canClose && "InsertCharWindow" in window && window.InsertCharWindow) 
context: function EditorCanClose(){  // Returns FALSE only if user cancels save action  // "true" means allow "Don't Save" button  var canClose = CheckAndSaveDocument(GetString("BeforeClosing"), true);  // This is our only hook into closing via the "X" in the caption  //   or "Quit" (or other paths?)  //   so we must shift association to another  //   editor or close any non-modal windows now  if (canClose && window.InsertCharWindow)    SwitchInsertCharToAnotherEditorOrClose();  return canClose;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/4dd49c277cf5bccb572042deb93e670d53587029/editor.js/clean/editor/ui/composer/content/editor.js