rem: (calendar.type == "storage" || cal.type == "memory")) { 
add: (calendar.type == "storage" || calendar.type == "memory")) { 
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" || cal.type == "memory")) {            try {                calendar.deleteCalendar(calendar, null);            } catch(ex) {                dump("error purging calendar:"+ex+'\n');            }        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/77409703bc4a070c71aeb8231ac09ca8c03ed0a8/calCalendarManager.js/buggy/calendar/base/src/calCalendarManager.js