Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide the ability to add multiple onCorrect and onIncorrect event handlers #6

Open
askingalot opened this issue Sep 10, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@askingalot
Copy link
Collaborator

askingalot commented Sep 10, 2018

Maybe add addEventListner and removeEventListener methods?

Maybe something more specific like setOnCorrect or setOnIncorrect?

@askingalot askingalot added the enhancement New feature or request label Sep 10, 2018
@gvwilson
Copy link
Collaborator

What's the use case?

@askingalot
Copy link
Collaborator Author

Honestly, one of the reasons I like this idea is because JavaScript allows you to do this when you register event listeners for DOM events.

But as for a use case, we might want to give the person creating the question a menu of possible responses that would each be implemented as individual event handlers. Another use case might be a scenario where there are multiple questions, and questions' creator may wish to respond to the completion of each question, but also have a common event handler that tallies the results.

All that being said, I wouldn't consider this a high priority at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants