if (this.findCalendarID(calendar) in this.mCache) { 
if (calendar.id in this.mCache) { 
    deleteCalendar: function(calendar) {        /* check to see if calendar is unregistered first... */        /* delete the calendar for good */        if (this.findCalendarID(calendar) in this.mCache) {            throw "Can't delete a registered calendar";        }        this.notifyObservers("onCalendarDeleting", [calendar]);        // XXX This is a workaround for bug 351499. We should remove it once        // we sort out the whole "delete" vs. "unsubscribe" UI thing.        //        // We only want to delete the contents of calendars from local        // providers (storage and memory). Otherwise we may nuke someone's        // calendar stored on a server when all they really wanted to do was        // unsubscribe.        if (calendar instanceof Components.interfaces.calICalendarProvider &&           (calendar.type == "storage" || calendar.type == "memory")) {            try {                calendar.deleteCalendar(calendar, null);            } catch (e) {                Components.utils.reportError("error purging calendar: " + e);            }        }    },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/5c2eff62f489d5c91d466c614db49972e886f55c/calCalendarManager.js/buggy/calendar/base/src/calCalendarManager.js