rem: url += ("&calid=" + encodeURIComponent(this.calId)); 
add: var calId = this.calId; if (calId) url += ("&calid=" + encodeURIComponent(calId)); 
context:     getCommandUrl:    function( wcapCommand )    {        var url = this.session.getCommandUrl(wcapCommand);        url += ("&calid=" + encodeURIComponent(this.calId));        return url;    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b5fab442cc66c02f0d2b258985f625f9bf47e419/calWcapCalendar.js/buggy/calendar/providers/wcap/calWcapCalendar.js