function checkEvents($calendarElement, year, month) {
            var jsonData = $calendarElement.data('jsonData');
            var ajaxSettings = $calendarElement.data('ajaxSettings');

            $calendarElement.data('events', false);

            if (false !== jsonData) {
                return jsonEvents($calendarElement);
            } else if (false !== ajaxSettings) {
                return ajaxEvents($calendarElement, year, month);
            }

            return true;
        }
function checkEvents($calendarElement, year, month) {
            var jsonData = $calendarElement.data('jsonData');
            var ajaxSettings = $calendarElement.data('ajaxSettings');

            $calendarElement.data('events', false);

            if (false !== jsonData) {
                return jsonEvents($calendarElement);
            } else if (false !== ajaxSettings) {
                return ajaxEvents($calendarElement, year, month);
            }

            return true;
        }
function checkEvents ( $calendarElement , year , month ) { var jsonData = $calendarElement . data ( 'jsonData' ) ; var ajaxSettings = $calendarElement . data ( 'ajaxSettings' ) ; $calendarElement . data ( 'events' , false ) ; if ( false !== jsonData ) { return jsonEvents ( $calendarElement ) ; } else if ( false !== ajaxSettings ) { return ajaxEvents ( $calendarElement , year , month ) ; } return true ; }
/* ----- Event functions -----
/ * ----- Event functions -----