Skip to content
Discussion options

You must be logged in to vote

La façon dont je le vois en ce moment, je pense que le problème ici est très probablement que vous avez passé dans la fonction appels au lieu des fonctions de rappel où il attend une fonction de rappel.
Par exemple,

The way I see it right now, I think the problem here is most likely that you have passed in function calls instead of callback functions where it expects a callback function.
For example,

buttonDeleteRegions.addEventListener('click', clearRegions());

n'est pas la bonne façon d'écrire cela.
is not the correct way to write this.

buttonDeleteRegions.addEventListener('click', function() {
    clearRegions();
});  

est la bonne façon d'écrire cela.
is the correct way to write this.

Replies: 3 comments 17 replies

Comment options

You must be logged in to vote
7 replies
@NinaP48
Comment options

@prakharpbuf
Comment options

@prakharpbuf
Comment options

@NinaP48
Comment options

@prakharpbuf
Comment options

Comment options

You must be logged in to vote
5 replies
@NinaP48
Comment options

@prakharpbuf
Comment options

@NinaP48
Comment options

@prakharpbuf
Comment options

@NinaP48
Comment options

Answer selected by NinaP48
Comment options

You must be logged in to vote
5 replies
@prakharpbuf
Comment options

@prakharpbuf
Comment options

@NinaP48
Comment options

@NinaP48
Comment options

@prakharpbuf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants