fix js error when switching views
fix js error when switching views

fullcalendar/fullcalendar,arshaw/fullcalendar,arshaw/fullcalendar,fullcalendar/fullcalendar,arshaw/fullcalendar,fullcalendar/fullcalendar,oleg-babintsev/fullcalendar,oleg-babintsev/fullcalendar,arshaw/fullcalendar,fullcalendar/fullcalendar,oleg-babintsev/fullcalendar