 
                 addCalendar calendar
 
-            createWeek: (newDate) ->
+            createWeek: (newDate, calendar) ->
                 weekdaysHtml = "<thead><tr><th></th>"
                 $.each self.days, (key, value) ->
                     _dates = utilities.getDates datesInWeek, key

                utilities.highlightToday()
                utilities.highlightWeekends()

                $.each self.events, ->
                    self.addEventsToCalendar @

                $('.drm-calendar-year-prev').text lastYear
                $('.drm-calendar-year-next').text nextYear


        switch self.view
            when 'month' then views.createMonth newDate, calendar
            when 'week' then views.createWeek newDate, calendar
            when 'date' then views.createDate newDate, calendar