From a55071f67b5c04b6b8f5bab1ab208cc3b3058f48 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 29 Jan 2024 11:25:36 -0500 Subject: [PATCH] fix documentation for rejectEventHandler --- src/eventsource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eventsource.js b/src/eventsource.js index cb7d09c3..04b8581b 100644 --- a/src/eventsource.js +++ b/src/eventsource.js @@ -215,8 +215,8 @@ $.EventSource.prototype = { /** * Set an event name as being disabled, and provide an optional error message * to be printed to the console - * @param {String} eventName - * @param {[String]} errorMessage + * @param {String} eventName - Name of the event + * @param {String} [errorMessage] - Optional string to print to the console */ rejectEventHandler(eventName, errorMessage = ''){ this.rejectedEventList[eventName] = errorMessage;