rem: editorShell.EndBatchChanges(); 
context: function onOK(){  if (ValidateData())  {    editorShell.BeginBatchChanges();    // Save only if advanced "head editing" region is open?    if (SeeMore)    {      // Delete existing children of HEAD            // Note that we must use editorShell method so this is undoable      var children = dialog.HeadSrcInput.childNodes;      if (children)      {        for(i=0; i < children.length; i++)           editorShell.DeleteElement(children.item(i));      }      var headSrcString = dialog.HeadSrcInput.value;      if (headSrcString.length > 0)        editorShell.ReplaceHeadContentsWithHTML(headSrcString);            }    //Problem: How do we reconcile changes in same elements in     //         advanced region and here?     // 1. Save manually-edited results first    // 2. Save each of the 3 textfield results only if user actually changed a value    if (titleWasEdited)    {      // Set title contents even if string is empty      //  because TITLE is a required HTML element      editorShell.SetDocumentTitle(title);    }        if (authorWasEdited)      SetMetaElementContent(authorElement, author, insertNewAuthor);    if (descWasEdited)      SetMetaElementContent(descriptionElement, description, insertNewDescription);    editorShell.EndBatchChanges();    return true; // do close the window  }  return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7eedb58c104c053baf19ad0ec2d93622357c4dbd/EdPageProps.js/buggy/editor/ui/dialogs/content/EdPageProps.js