rem: this.ensureOnline(); var url = this.getCommandUrl( bGetOwnedCals ? "list" : "list_subscribed" ); var ret = []; var xml = this.issueSyncRequest( url + "&fmt-out=text%2Fxml", utf8ToXml ).data; var nodeList = xml.getElementsByTagName( bGetOwnedCals ? "X-S1CS-CALPROPS-OWNED-CALENDAR" : "X-S1CS-CALPROPS-SUBSCRIBED-CALENDAR" ); for ( var i = 0; i < nodeList.length; ++i ) { ret.push( nodeList.item(i).textContent ); 
add: try { var url = this.getCommandUrl( bGetOwnedCals ? "list" : "list_subscribed" ); var ret = []; var xml = this.issueSyncRequest( url + "&fmt-out=text%2Fxml", stringToXml ); var nodeList = xml.getElementsByTagName( bGetOwnedCals ? "X-S1CS-CALPROPS-OWNED-CALENDAR" : "X-S1CS-CALPROPS-SUBSCRIBED-CALENDAR" ); for ( var i = 0; i < nodeList.length; ++i ) { ret.push( nodeList.item(i).textContent ); } out_count.value = ret.length; return ret; 
context:     getCalIds:    function( out_count, bGetOwnedCals )    {        this.ensureOnline();        var url = this.getCommandUrl(            bGetOwnedCals ? "list" : "list_subscribed" );        var ret = [];        var xml = this.issueSyncRequest(            url + "&fmt-out=text%2Fxml", utf8ToXml ).data;        var nodeList = xml.getElementsByTagName(            bGetOwnedCals ? "X-S1CS-CALPROPS-OWNED-CALENDAR"                          : "X-S1CS-CALPROPS-SUBSCRIBED-CALENDAR" );        for ( var i = 0; i < nodeList.length; ++i ) {            ret.push( nodeList.item(i).textContent );        }        out_count.value = ret.length;        return ret;    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/99eaaaada9e6f5f2a2f7fac9237c6e41ecf1eef7/calWcapCalendar.js/buggy/calendar/providers/wcap/calWcapCalendar.js