jsDoc for removeListener
This commit is contained in:
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user