add:  var f = null; if (qual) { switch(qual) { case opts.ALL_EVENTS: if (ev.data.masterEvent) { f = function() { doRemoveEvent(ev, { 'removeType': 'recurrenceMaster' }) }; } else { h = function(evData, err) { if (err) { Cal.showErr('Could not retrieve master event for this recurrence.', err);  dojo.event.topic.publish('/calEvent', { 'action': 'removeFailed', 'data': ev }); } else {  var removeEv = new CalEvent(); removeEv.data = evData; doRemoveEvent(removeEv, { 'removeType': 'recurrenceMaster', 'instanceEventId': ev.data.id }); } }; f = function() { var reqId = Cal.serv.getEvent(h, Cal.currentCalendar.path, ev.data.id); }; } break; case opts.ALL_FUTURE_EVENTS: break; case opts.ONLY_THIS_EVENT:  break; default:  break; } }  else { f = function() { doRemoveEvent(ev, { 'removeType': 'singleEvent' }) } } f();  
context:     function removeEvent(ev) {        doRemove(ev);                // No currently selected event        cosmo.view.cal.canvas.selectedEvent = null;                // Kill any confirmation dialog that might be showing        if (Cal.dialog.isDisplayed) {            Cal.hideDialog();        }    }
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/00d0412f8f5370fbac796293d7ade1c9aa01ed3e/cal.js/buggy/src/webapp/js/cosmo/view/cal.js