             _addWeeklyEvents events, eventDates
         else if events.recurrance is 'daily'
             _addDailyEvents events, eventDates
-        else if events.recurrance is 'none' and _eventMonth is month and _eventYear is parseInt(events.year, 10)                                         
+        else if events.recurrance is 'none' and eventMonth is month and eventYear is parseInt(events.year, 10)                                         
             _addOneTimeEvents events, eventDates
         if eventDates.length > 0
             $.each eventDates, (key, date) ->


    advanceYear: (direction) =>
        self = @
        calendarInner = @calendar.find "div.#{@calendarInnerClass}"
        newDate =
            month: calendarInner.data 'month'
            year: calendarInner.data 'year'

        newDate.date = if newDate.month is self.today.month then self.today.date else 1
        newDate.year = if direction is 'prev' then newDate.year - 1 else newDate.year + 1


            weekdaysHtml = "<thead><tr><th></th>"
            $.each self.days, (key, value) ->
                _dates = _getDates datesInWeek, key
                weekdaysHtml += "<th>#{value}<br>#{self.months[_dates.month]} #{_dates.date}</th>"
            weekdaysHtml += '</tr></thead>'

            weekHtml = "<tbody class='#{self.classes.week} #{weekClass}' data-week='#{weekNumber}'>"
            $.each self.hours, ->
                _hour = @name

                weekHtml += "<tr><td><span class='hour'>#{_hour}</span></td>"
                $.each self.days, (key) ->
                    dates = _getDates datesInWeek, key
                    weekHtml += "<td class='#{self.classes.date}' data-month='#{dates.month}' data-date='#{dates.date}' 
                        data-year='#{newDate.year}' data-day='#{key}' data-hour='#{_hour}'></td>"
                weekHtml += '</tr>'

            weekHtml += '</tbody>'

            _weekView = $ '<table></table>',
                html: weekdaysHtml + weekHtml

            _calendar = $ '<div></div>',
                class: self.calendarInnerClass
                html: _weekView
                'data-month': newDate.month
                'data-year': newDate.year

            _weekDates = if datesInWeek.length > 1
                    "#{datesInWeek[0]} - #{datesInWeek[datesInWeek.length - 1]}"
                else 
                    "#{datesInWeek[0]}"

            _heading = $ '<h1></h1>',
                class: 'drm-calendar-header'
                text: "#{self.months[newDate.month]} #{_weekDates}: Week #{weekNumber} of #{newDate.year}"
            
            _calendar.appendTo ".#{self.calendarClass}"
            _heading.prependTo "div.#{self.calendarInnerClass}"

            $("div.#{self.calendarInnerClass}")
                .find "tbody td[data-month=#{lastMonth}]"
