From d3d64d3ca0fe0976afea9a390fee58e09320cb12 Mon Sep 17 00:00:00 2001 From: rejas Date: Sat, 2 Jan 2021 21:08:53 +0100 Subject: [PATCH] Cleanups --- modules/default/calendar/calendar.js | 2 +- modules/default/calendar/calendarutils.js | 4 ++-- modules/default/calendar/node_helper.js | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index 2e7887f6..5cf02ee4 100755 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -77,7 +77,7 @@ Module.register("calendar", { // Define required translations. getTranslations: function () { // The translations for the default modules are defined in the core translation files. - // Therefor we can just return false. Otherwise we should have returned a dictionary. + // Therefore we can just return false. Otherwise we should have returned a dictionary. // If you're trying to build your own module including translations, check out the documentation. return false; }, diff --git a/modules/default/calendar/calendarutils.js b/modules/default/calendar/calendarutils.js index 35f61458..aaf51a12 100644 --- a/modules/default/calendar/calendarutils.js +++ b/modules/default/calendar/calendarutils.js @@ -18,8 +18,8 @@ const CalendarUtils = { * Calculate the time correction, either dst/std or full day in cases where * utc time is day before plus offset * - * @param event - * @param date + * @param {object} event + * @param {Date} date * @returns {number} the necessary adjustment in hours */ calculateTimezoneAdjustment: function (event, date) { diff --git a/modules/default/calendar/node_helper.js b/modules/default/calendar/node_helper.js index 66e423db..b734309e 100644 --- a/modules/default/calendar/node_helper.js +++ b/modules/default/calendar/node_helper.js @@ -74,6 +74,8 @@ module.exports = NodeHelper.create({ /** * + * @param {object} fetcher the fetcher associated with the calendar + * @param {string} identifier the identifier of the calendar */ broadcastEvents: function (fetcher, identifier) { this.sendSocketNotification("CALENDAR_EVENTS", {