add:   var deck = getViewDeck(); if (deck.selectedIndex < 0) {  showCalendarView("week"); } else { var viewNode = deck.childNodes[deck.selectedIndex]; var viewName = viewNode.id.replace(/-view/, ""); showCalendarView(viewName); } 
context: function initializeViews() {    // Set up the checkbox variables. Do not use the typical toggle*() functions    // because those will actually toggle the current value.    const kWorkdaysCommand = "calendar_toggle_workdays_only_command";    const kTasksInViewCommand = "calendar_toggle_tasks_in_view_command";    const kOrientation = "calendar_toggle_orientation_command";    const kHideCompleted = "hide-completed-checkbox";    var workdaysOnly = (document.getElementById(kWorkdaysCommand)                                .getAttribute("checked") == "true");    var tasksInView = (document.getElementById(kTasksInViewCommand)                               .getAttribute("checked") == "true");    var rotated = (document.getElementById(kOrientation)                           .getAttribute("checked") == "true");    var showCompleted = !document.getElementById(kHideCompleted).checked;    var deck = getViewDeck();    for each (var view in deck.childNodes) {        view.workdaysOnly = workdaysOnly;        view.tasksInView = tasksInView;        view.showCompleted = showCompleted;        view.rotated = rotated;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/bbf4d8d45ae475d85b53d8dc08216d2560dcfc0a/calendar-views.js/buggy/calendar/base/content/calendar-views.js