styleClearAll (target) {
        let _self = this,
            $elems = _self.clndr.element.find('.day-contents');

        $elems.each(function() {
            let $elem = $(this),
                $elemParent = $elem.parent(),
                date = moment($elem.data('day'), _self.dateFormatInternal).format(_self.dateFormatLong),
                ariaLabel = 'Unselected';

            // If event was passed in the `events` array, it will be reset back to `.selected` and needs labelling
            if ($elemParent.attr('class').indexOf('event') !== -1) {
                ariaLabel = 'Selected. Event will repeat on this day';
            }

            $elem.attr('aria-label',  date + '. ' + ariaLabel);
            $elemParent.removeClass('event-add event-del event-repeat');
        });
    }
/**
     * Restore all dates to their initial state (when the calendar was initialised)
     */
Restore all dates to their initial state (when the calendar was initialised)
Restore all dates to their initial state ( when the calendar was initialised )
styleClearAll (target) {
        let _self = this,
            $elems = _self.clndr.element.find('.day-contents');
        $elems.each(function() {
            let $elem = $(this),
                $elemParent = $elem.parent(),
                date = moment($elem.data('day'), _self.dateFormatInternal).format(_self.dateFormatLong),
                ariaLabel = 'Unselected';
            if ($elemParent.attr('class').indexOf('event') !== -1) {
                ariaLabel = 'Selected. Event will repeat on this day';
            }
            $elem.attr('aria-label',  date + '. ' + ariaLabel);
            $elemParent.removeClass('event-add event-del event-repeat');
        });
    }
styleClearAll ( target ) { let _self = this , $elems = _self . clndr . element . find ( '.day-contents' ) ; $elems . each ( function ( ) { let $elem = $ ( this ) , $elemParent = $elem . parent ( ) , date = moment ( $elem . data ( 'day' ) , _self . dateFormatInternal ) . format ( _self . dateFormatLong ) , ariaLabel = 'Unselected' ; if ( $elemParent . attr ( 'class' ) . indexOf ( 'event' ) !== - 1 ) { ariaLabel = 'Selected. Event will repeat on this day' ; } $elem . attr ( 'aria-label' , date + '. ' + ariaLabel ) ; $elemParent . removeClass ( 'event-add event-del event-repeat' ) ; } ) ; }
Restore all dates to their initial state (when the calendar was initialised)
Restore all dates to their initial state ( when the calendar was initialised )
// If event was passed in the `events` array, it will be reset back to `.selected` and needs labelling