vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-2.4.0.2 vs vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-2.5.0.0

- old
+ new

@@ -1,7 +1,7 @@ /*! - * FullCalendar v2.4.0 Google Calendar Plugin + * FullCalendar v2.5.0 Google Calendar Plugin * Docs & License: http://fullcalendar.io/ * (c) 2015 Adam Shaw */ (function(factory) { @@ -16,15 +16,15 @@ } })(function($) { var API_BASE = 'https://www.googleapis.com/calendar/v3/calendars'; -var fc = $.fullCalendar; -var applyAll = fc.applyAll; +var FC = $.fullCalendar; +var applyAll = FC.applyAll; -fc.sourceNormalizers.push(function(sourceOptions) { +FC.sourceNormalizers.push(function(sourceOptions) { var googleCalendarId = sourceOptions.googleCalendarId; var url = sourceOptions.url; var match; // if the Google Calendar ID hasn't been explicitly defined @@ -62,11 +62,11 @@ sourceOptions.url = googleCalendarId; } }); -fc.sourceFetchers.push(function(sourceOptions, start, end, timezone) { +FC.sourceFetchers.push(function(sourceOptions, start, end, timezone) { if (sourceOptions.googleCalendarId) { return transformOptions(sourceOptions, start, end, timezone, this); // `this` is the calendar } }); @@ -84,10 +84,10 @@ // call error handlers (sourceOptions.googleCalendarError || $.noop).apply(calendar, errorObjs); (calendar.options.googleCalendarError || $.noop).apply(calendar, errorObjs); // print error to debug console - fc.warn.apply(null, [ message ].concat(apiErrorObjs || [])); + FC.warn.apply(null, [ message ].concat(apiErrorObjs || [])); } if (!apiKey) { reportError("Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"); return {}; // an empty source to use instead. won't fetch anything.