subComp != null && (!maxResult || itemCount < maxResult); 
subComp != null && (!maxResults || itemCount < maxResults); 
function forEachIcalComponent(icalRootComp, componentType, func, maxResult){    var itemCount = 0;    // libical returns the vcalendar component if there is just    // one vcalendar. If there are multiple vcalendars, it returns    // an xroot component, with those vcalendar childs. We need to    // handle both.    for ( var calComp = (icalRootComp.componentType == "VCALENDAR"                         ? icalRootComp                         : icalRootComp.getFirstSubcomponent("VCALENDAR"));          calComp != null && (!maxResult || itemCount < maxResult);          calComp = icalRootComp.getNextSubcomponent("VCALENDAR") )    {        for ( var subComp = calComp.getFirstSubcomponent(componentType);              subComp != null && (!maxResult || itemCount < maxResult);              subComp = calComp.getNextSubcomponent(componentType) )        {            func( subComp );            ++itemCount;        }    }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/64fa0031c18ffbcccb6d772168cab3b330d991f6/calWcapUtils.js/buggy/calendar/providers/wcap/calWcapUtils.js