vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-3.2.0.0 vs vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-3.4.0.0
- old
+ new
@@ -1,11 +1,11 @@
/*!
- * FullCalendar v3.2.0 Google Calendar Plugin
+ * FullCalendar v3.4.0 Google Calendar Plugin
* Docs & License: https://fullcalendar.io/
* (c) 2017 Adam Shaw
*/
-
+
(function(factory) {
if (typeof define === 'function' && define.amd) {
define([ 'jquery' ], factory);
}
else if (typeof exports === 'object') { // Node/CommonJS
@@ -71,20 +71,20 @@
});
function transformOptions(sourceOptions, start, end, timezone, calendar) {
var url = API_BASE + '/' + encodeURIComponent(sourceOptions.googleCalendarId) + '/events?callback=?'; // jsonp
- var apiKey = sourceOptions.googleCalendarApiKey || calendar.options.googleCalendarApiKey;
+ var apiKey = sourceOptions.googleCalendarApiKey || calendar.opt('googleCalendarApiKey');
var success = sourceOptions.success;
var data;
var timezoneArg; // populated when a specific timezone. escaped to Google's liking
function reportError(message, apiErrorObjs) {
var errorObjs = apiErrorObjs || [ { message: message } ]; // to be passed into error handlers
// call error handlers
(sourceOptions.googleCalendarError || $.noop).apply(calendar, errorObjs);
- (calendar.options.googleCalendarError || $.noop).apply(calendar, errorObjs);
+ (calendar.opt('googleCalendarError') || $.noop).apply(calendar, errorObjs);
// print error to debug console
FC.warn.apply(null, [ message ].concat(apiErrorObjs || []));
}