rem: if (this.findCalendarID(calendar) > 0) 
add: if (this.findCalendarID(calendar) > 0) { dump ("registerCalendar: calendar already registered\n"); 
context:     registerCalendar: function(calendar) {        // bail if this calendar (or one that looks identical to it) is already registered        if (this.findCalendarID(calendar) > 0)            throw Components.results.NS_ERROR_FAILURE;        var pp = this.mRegisterCalendar.params;        pp.type = calendar.type;        pp.uri = calendar.uri.spec;        this.mRegisterCalendar.step();        this.mRegisterCalendar.reset();        //dump("adding [" + this.mDB.lastInsertRowID + "]\n");        //this.mCache[this.mDB.lastInsertRowID] = calendar;        this.mCache[this.findCalendarID(calendar)] = calendar;        this.notifyObservers("onCalendarRegistered", [calendar]);    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/415397e217845a7b2b45516db1161c99c9ea7f4e/calCalendarManager.js/clean/calendar/base/src/calCalendarManager.js