BMDS.beginUpdateBatch(); 
BMDS.endUpdateBatch(); 
  removeSelection: function (aAction, aSelection)  {    if (aSelection.length > 1)      gBkmkTxnSvc.startBatch();    if (aSelection.length > kBATCH_LIMIT && aAction != "move")      BMDS.beginUpdateBatch();    for (var i = 0; i < aSelection.length; ++i) {      // try to put back aSelection.parent[i] if it's null, so we can delete after searching      if (aSelection.parent[i] == null)          aSelection.parent[i] = BMDS.getParent(aSelection.item[i]);      if (aSelection.parent[i]) {        RDFC.Init(BMDS, aSelection.parent[i]);        // save the selection property into array that is used later in        // when performing the REMOVE transaction        // (if the selection is folder save all childs property)        var propArray;        if (aAction != "move") {            propArray = new Array(gBmProperties.length);            var aType = BookmarksUtils.resolveType(aSelection.item[i]);                        if (aType != "Livemark") {// don't change livemark properties               for (var j = 0; j < gBmProperties.length; ++j) {                  var oldValue = BMDS.GetTarget(aSelection.item[i], gBmProperties[j], true);                  if (oldValue)                      propArray[j] = oldValue.QueryInterface(kRDFLITIID);               }            }            if (aType == "Folder" || aType == "Livemark")                BookmarksUtils.getAllChildren(aSelection.item[i], propArray);        }        var proplength = propArray ? propArray.length : 0;        gBkmkTxnSvc.createAndCommitTxn(gBkmkTxnSvc.REMOVE, aAction,                                        aSelection.item[i],                                        RDFC.IndexOf(aSelection.item[i]),                                       aSelection.parent[i],                                        proplength, propArray);      }    }    if (aSelection.length > 1)      gBkmkTxnSvc.endBatch();    if (aSelection.length > kBATCH_LIMIT && aAction != "move")      BMDS.beginUpdateBatch();    return true;  },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/aca7ffe9f63ab020a7e22334368ceee2ccae842e/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js