rem: if (this.findCalendarID(calendar) in this.mCache) { 
add: if (calendar.id in this.mCache) { 
context:     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);            }        }    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/5c2eff62f489d5c91d466c614db49972e886f55c/calCalendarManager.js/buggy/calendar/base/src/calCalendarManager.js