or

It seems like this is a bug with the router, but maybe I am missing something. Is there a different way that I should be handling canceling the route navigation? If this is a bug, I would like to know if there is a workaround/fix that can be implemented, since this feature is a must-have for my application.
var customView = kendo.ui.MultiDayView.extend({ name: "customview", calculateDateRange: function () { var startDate = this.options.date; var date = startDate.getDate(); var day = startDate.getDay(); var weekStart = new Date(startDate.setDate(date - day)); var weekDate = weekStart.getDate(); // Array to hold the dates that are displayed var dates = new Array(); // Array to hold all the days of the week var weekDays = new Array(); for (var i = 0; i < 7; i++) { weekDays[i] = new Date(weekStart.setDate(weekDate + i)); } // Get Selected Days to show from checkboxes var checkboxes = document.getElementsByName('weekday'); for (var i = 0; i < checkboxes.length; i++) { // Only add days checked if (checkboxes[i].checked) { // DOW var dayNumber = parseInt(checkboxes[i].value); dates.push(weekDays[dayNumber]); } } this._render(dates); }});function weekDayClick(cb){ // Get current view var scheduler = $("#scheduler").data("kendoScheduler"); var currentView = scheduler.view(); // If the current view is not "My View", we can just return if (currentView.title.toLowerCase() != "my view") return; // Is My View. If Checked, need to add to view; otherwise remove var dates = currentView._dates; var newDates = new Array(); var dow = parseInt(cb.value); if (cb.checked) { // TODO: Add selected day to dates } else { // Remove date from view for (var i = 0; i < dates.length; i++) { if (dates[i].getDay() != dow) newDates.push(dates[i]); } } // Render view currentView.render(newDates); scheduler.view(scheduler.view(customView)); scheduler.view(scheduler.view().name);}