rem: var args = window.arguments[0]; var filterList; if ("filterList" in args) filterList = args.filterList; if (filterList) for (var i = 0; i < filterList.filterCount; i++) { if (filterName == filterList.getFilterAt(i).filterName) return true; } return false; 
add: if (gFilterList) for (var i = 0; i < gFilterList.filterCount; i++) { if (filterName == gFilterList.getFilterAt(i).filterName) return true; } return false; 
context: function duplicateFilterNameExists(filterName){    var args = window.arguments[0];    var filterList;    if ("filterList" in args)      filterList = args.filterList;    if (filterList)      for (var i = 0; i < filterList.filterCount; i++)     {       if (filterName == filterList.getFilterAt(i).filterName)         return true;     }    return false;   }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/82820f30a5302b64f66bb075fdd9e8140a1ae230/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js