rem:   gSearchTerms.length--; if (index < gTotalSearchTerms - 1) resetIdsLess(index); 
add:   gSearchTerms.splice(index, 1); 
context: function removeSearchRow(index){    var searchTermObj = gSearchTerms[index].obj;    if (!searchTermObj) {        return;    }    // if it is an existing (but offscreen) term,    // make sure it is initialized before we remove it.    if (!gSearchTerms[index].searchTerm && !gSearchTerms[index].initialized)        initializeTermFromIndex(index);    // need to remove row from list, so walk upwards from the    // searchattribute to find the first <listitem>    var listitem = searchTermObj.searchattribute;    while (listitem) {        if (listitem.localName == "listitem") break;        listitem = listitem.parentNode;    }    if (!listitem) {        dump("Error: couldn't find parent listitem!\n");        return;    }    if (searchTermObj.searchTerm) {        gSearchRemovedTerms[gSearchRemovedTerms.length] = searchTermObj.searchTerm;    } else {        //dump("That wasn't real. ignoring \n");    }    listitem.parentNode.removeChild(listitem);    // remove it from the list of terms - XXX this does it?    // remove the last element    gSearchTerms.length--;    if (index < gTotalSearchTerms - 1)       resetIdsLess(index);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cfa5ee3d500ca29c24df2800a566e9d3be296aec/searchTermOverlay.js/buggy/mailnews/base/search/resources/content/searchTermOverlay.js