context:     observe: function(subject, topic, prefName)    {        // when calendar pref was changed, we reinitialize         switch( prefName )        {            case "calendar.event.defaultstarthour":            case "calendar.event.defaultendhour":            case "calendar.previousweeks.inview":            case "calendar.week.d0sundaysoff":            case "calendar.week.d1mondaysoff":            case "calendar.week.d2tuesdaysoff":            case "calendar.week.d3wednesdaysoff":            case "calendar.week.d4thursdaysoff":            case "calendar.week.d5fridaysoff":            case "calendar.week.d6saturdaysoff":                if (this.CalendarPreferences.calendarWindow.currentView != null)                this.CalendarPreferences.calendarWindow.currentView.refresh();                break;            case "calendar.weeks.inview":                //changeNumberOfWeeks expects an element with attribute 'value'                var newWeeks = document.createElement( "textbox" );                newWeeks.setAttribute("value", subject.getIntPref( prefName ) );                this.CalendarPreferences.calendarWindow.multiweekView                       .changeNumberOfWeeks(newWeeks);                break;            case "calendar.week.start":                this.CalendarPreferences.calendarWindow.currentView.refresh();                this.CalendarPreferences.calendarWindow.miniMonth.refreshDisplay(true);                break;            case "calendar.date.format" :                this.CalendarPreferences.calendarWindow.currentView.refresh();                refreshEventTree();                toDoUnifinderRefresh();                break;            case "calendar.alarms.showmissed":                if( subject.getBoolPref( prefName ) ) {                    //this triggers the alarmmanager if show missed is turned on                    gICalLib.batchMode = true;                     gICalLib.batchMode = false;                }                break;            case "calendar.local-time-zone":                gDefaultTimezone = subject.getCharPref( prefName );                this.CalendarPreferences.calendarWindow.currentView.refresh();                refreshEventTree();                toDoUnifinderRefresh();                break;            default :                break;        }             //this causes Mozilla to freeze        //firePendingEvents();     },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/622a7e12e26351115d5c06bd20cba472a7d7c279/rootCalendarPref.js/buggy/calendar/resources/content/pref/rootCalendarPref.js