fixes setEvents method
fixes setEvents method

calling setEvents method threw ReferenceError: calendar is not defined

ykshao/CLNDR,WangRex/CLNDR,ykshao/CLNDR,masterweb121/CLNDR,kapke/CLNDR,MadAnd/CLNDR,kylestetz/CLNDR,MadAnd/CLNDR,AleksandrChukhray/CLNDR,kylestetz/CLNDR,Klaudit/CLNDR,AleksandrChukhray/CLNDR,kapke/CLNDR,joubertredrat/CLNDR,Klaudit/CLNDR,masterweb121/CLNDR,joubertredrat/CLNDR,WangRex/CLNDR