jsDoc for removeListener

This commit is contained in:
yoannchb-pro
2023-06-20 14:40:25 -04:00
parent a290733bf7
commit e26422a4a3
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -482,6 +482,10 @@
if (config.title)
titleIndications("Injected");
}
/**
* Remove the event listener on a specific question
* @param element
*/
function removeListener(element) {
const index = listeners.findIndex((listener) => listener.element === element);
if (index !== -1) {
File diff suppressed because one or more lines are too long
+4
View File
@@ -66,6 +66,10 @@ function setUpMoodleGpt(config: Config) {
if (config.title) titleIndications("Injected");
}
/**
* Remove the event listener on a specific question
* @param element
*/
function removeListener(element: HTMLElement) {
const index = listeners.findIndex((listener) => listener.element === element);
if (index !== -1) {