rem:  for (var i = 0; i<gSearchTerms.length; i++) { 
add: var i; for (i = 0; i<gSearchTerms.length; i++) { 
context: function saveSearchTerms(searchTerms, termOwner){        for (var i = 0; i<gSearchTerms.length; i++) {        try {            dump("Saving search element " + i + "\n");            var searchTerm = gSearchTerms[i].searchTerm;            if (searchTerm)                gSearchTerms[i].save();            else {                // need to create a new searchTerm, and somehow save it to that                dump("Need to create searchterm " + i + "\n");                searchTerm = termOwner.createTerm();                gSearchTerms[i].saveTo(searchTerm);                termOwner.appendTerm(searchTerm);            }        } catch (ex) {            dump("** Error saving element " + i + ": " + ex + "\n");        }    }    // now remove the queued elements    for (var i=0; i<gSearchRemovedTerms.length; i++) {        // this is so nasty, we have to iterate through        // because GetIndexOf is acting funny        var searchTermSupports =            gSearchRemovedTerms[i].QueryInterface(Components.interfaces.nsISupports);        searchTerms.RemoveElement(searchTermSupports);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6e1bcb5a7f131036c40b449a2616e7d29cd6edb5/searchTermOverlay.js/clean/mailnews/base/search/resources/content/searchTermOverlay.js