             firstDay = self.getDayOfWeek currentMonth, currentYear, 1
             numberDays = self.getDaysInMonth (currentMonth + 1), currentYear
             dayShift = if firstDay is self.daysPerWeek then 0 else firstDay
-            eventDate = []
             weeks = if self.view is 'month' then calendarInner.find('tbody').find 'tr.drm-week' else calendarInner.find 'tbody.drm-week'
 
             # weekly events

                    length = weeks.length
                    $.each weeks, (key, value) ->
                        that = $ value
                        weekLength = that.find("td:not(.#{self.classes.muted})").length
                        if key is 0
                            if dayShift <= day then eventDate.push that.find("td.drm-date[data-day=#{day}]").data('date')
                        else if key is (length - 1)
                            if day < weekLength then eventDate.push that.find("td.drm-date[data-day=#{day}]").data('date')
                        else
                            eventDate.push that.find("td.drm-date[data-day=#{day}]").data('date')

            $.each eventDate, (key, value) ->
                eventDays.push calendarInner.find "td.drm-date[data-date=#{value}]"

        addDailyEvents: (events, eventDays) =>
            self = @
            calendarInner = self.calendar.find "div.#{@calendarInnerClass}"
            days = calendarInner.find('tbody').find "td.drm-date"
            days.each ->
                eventDays.push $(@)

        addOneTimeEvents: (events, eventDays) =>
            self = @
            calendarInner = self.calendar.find "div.#{@calendarInnerClass}"     
            eventDate = parseInt(events.eventDate, 10)
            eventDays.push calendarInner.find "td.drm-date[data-date=#{eventDate}]"

        addEventsToCalendar: (events) =>
            self = @

            $("div.#{self.calendarInnerClass}").find("tbody td[data-month=#{nextMonth}]").addClass(self.classes.muted).removeClass 'drm-date'
            self.highlightCurrentDay()
            self.highlightWeekends()

            $.each self.events, (key, value) ->
                self.addEventsToCalendar value
