vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-2.2.5.1 vs vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-2.3.1.0
- old
+ new
@@ -1,15 +1,18 @@
/*!
- * FullCalendar v2.2.5 Google Calendar Plugin
- * Docs & License: http://arshaw.com/fullcalendar/
- * (c) 2013 Adam Shaw
+ * FullCalendar v2.3.1 Google Calendar Plugin
+ * Docs & License: http://fullcalendar.io/
+ * (c) 2015 Adam Shaw
*/
(function(factory) {
if (typeof define === 'function' && define.amd) {
define([ 'jquery' ], factory);
}
+ else if (typeof exports === 'object') { // Node/CommonJS
+ module.exports = factory(require('jquery'));
+ }
else {
factory(jQuery);
}
})(function($) {
@@ -27,10 +30,10 @@
// if the Google Calendar ID hasn't been explicitly defined
if (!googleCalendarId && url) {
// detect if the ID was specified as a single string.
// will match calendars like "asdf1234@calendar.google.com" in addition to person email calendars.
- if ((match = /^[^\/]+@([^\/\.]+\.)*(google|googlemail|gmail)\.com$/.test(url))) {
+ if (/^[^\/]+@([^\/\.]+\.)*(google|googlemail|gmail)\.com$/.test(url)) {
googleCalendarId = url;
}
// try to scrape it out of a V1 or V3 API feed URL
else if (
(match = /^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^\/]*)/.exec(url)) ||