rem: } break; case "calendar.weeks.inview": if (this.CalendarPreferences.calendarWindow.multiweekView != null) {  var newWeeks = document.createElement( "textbox" ); newWeeks.setAttribute("value", subject.getIntPref( prefName ) ); this.CalendarPreferences.calendarWindow.multiweekView .changeNumberOfWeeks(newWeeks); 
context:     observe: function(subject, topic, prefName)    {        subject = subject.QueryInterface(Components.interfaces.nsIPrefBranch2);        // when calendar pref was changed, we reinitialize         switch( prefName )        {            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":                if (this.CalendarPreferences.calendarWindow.multiweekView != null) {                  //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":                if (this.CalendarPreferences.calendarWindow.currentView != null) {                  this.CalendarPreferences.calendarWindow.currentView.refresh();                }                if (this.CalendarPreferences.calendarWindow.miniMonth != null) {                  this.CalendarPreferences.calendarWindow.miniMonth.refreshDisplay(true);                }                break;            case "calendar.date.format" :                if (this.CalendarPreferences.calendarWindow.currentView != null) {                  this.CalendarPreferences.calendarWindow.currentView.refresh();                }                refreshEventTree();                toDoUnifinderRefresh();                break;            case "calendar.alarms.showmissed":                if( subject.getBoolPref( prefName ) ) {                  // XXX: trigger the alarmmanager to show missed events                }                break;            case "calendar.local-time-zone":                gDefaultTimezone = subject.getCharPref( prefName );                if (this.CalendarPreferences.calendarWindow.currentView != null) {                  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/9c23ea2f411e8ab2eebb31fd08434bff6fa9f7e4/rootCalendarPref.js/clean/calendar/resources/content/pref/rootCalendarPref.js