nggepe / calendar-gc

A jquery calendar library
https://nggepe.github.io/calendar-gc/
MIT License
23 stars 7 forks source link

JS exception when initing without events #10

Closed FRvanderVeen closed 1 year ago

FRvanderVeen commented 1 year ago

Great job on this calendar.

A small issue I found while using it. When you init the calendar as in the basic usage example (options={}), you will get a JS exception. This is because when not specifying events, an event is added, but without a date. This will result in an exception coming from the render method, because that expects the date of the even to be set.

nggepe commented 1 year ago

thank you for reporting this issue I'll check it soon