Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
singleRes = calendar[options].apply(calendar, args);
if (!i) {
res = singleRes; // record the first method call result
}
if (options === 'destroy') { // for the destroy method, must remove Calendar object data
element.removeData('fullCalendar');
}
}
else {
FC.warn("'" + options + "' is an unknown FullCalendar method.");
}
}
// a new calendar initialization
else if (!calendar) { // don't initialize twice
calendar = new fullcalendar.Calendar(element, options);
element.data('fullCalendar', calendar);
calendar.render();
}
});
singleRes = calendar[options].apply(calendar, args);
if (!i) {
res = singleRes; // record the first method call result
}
if (options === 'destroy') { // for the destroy method, must remove Calendar object data
element.removeData('fullCalendar');
}
}
else {
FC.warn("'" + options + "' is an unknown FullCalendar method.");
}
}
// a new calendar initialization
else if (!calendar) { // don't initialize twice
calendar = new fullcalendar.Calendar(element, options);
element.data('fullCalendar', calendar);
calendar.render();
}
});
initialize() {
this.calendar = new Calendar(this.element, this.config);
this.calendar.render();
if (this.props.events) {
this.calendar.removeAllEventSources();
this.calendar.addEventSource(this.props.events);
}
}
}
};
if (this.props.locale) {
for (let prop in this.props.locale) {
config[prop] = this.props.locale[prop];
}
}
if (this.props.options) {
for (let prop in this.props.options) {
this.config[prop] = this.props.options[prop];
}
}
this.calendar = new FullCalendar.Calendar(this.element, config);
this.calendar.render();
this.calendar.addEventSource(this.props.events);
}
}