vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-2.3.1.0 vs vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-2.4.0.0
- old
+ new
@@ -1,7 +1,7 @@
/*!
- * FullCalendar v2.3.1 Google Calendar Plugin
+ * FullCalendar v2.4.0 Google Calendar Plugin
* Docs & License: http://fullcalendar.io/
* (c) 2015 Adam Shaw
*/
(function(factory) {
@@ -78,20 +78,16 @@
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
- var consoleObj = window.console;
- var consoleWarnFunc = consoleObj ? (consoleObj.warn || consoleObj.log) : null;
// call error handlers
(sourceOptions.googleCalendarError || $.noop).apply(calendar, errorObjs);
(calendar.options.googleCalendarError || $.noop).apply(calendar, errorObjs);
// print error to debug console
- if (consoleWarnFunc) {
- consoleWarnFunc.apply(consoleObj, [ 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.