rem: if ("beginBatch" in this && selectionLength > 1) this.endBatch();  
context:   deleteSelection: function (aSelection)  {    const kRDFCContractID = "@mozilla.org/rdf/container;1";    const kRDFCIID = Components.interfaces.nsIRDFContainer;    const ksRDFC = Components.classes[kRDFCContractID].getService(kRDFCIID);    var nextElement;    var count = 0;    var selectionLength = aSelection.length;    if ("beginBatch" in this && selectionLength > 1)      this.beginBatch();    while (aSelection.length && aSelection[count]) {      const currParent = this.findRDFNode(aSelection[count], false);      const kSelectionURI = NODE_ID(aSelection[count]);      // Disallow the removal of certain 'special' nodes      if (kSelectionURI == "NC:BookmarksRoot" ||           kSelectionURI == "NC:IEFavoritesRoot") {        ++count;        continue;      }              const krParent = this.RDF.GetResource(NODE_ID(currParent));      const krNode = this.RDF.GetResource(kSelectionURI);      const kBMDS = this.RDF.GetDataSource("rdf:bookmarks");      ksRDFC.Init(kBMDS, krParent);      nextElement = this.getNextElement(aSelection[count]);      ksRDFC.RemoveElement(krNode, true);    }    if ("beginBatch" in this && selectionLength > 1)      this.endBatch();          this.selectElement(nextElement);  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d3a105160704b55d4aba06b54e032b4281cb503e/bookmarksOverlay.js/clean/xpfe/components/bookmarks/resources/bookmarksOverlay.js