We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For actions such as emscripten_set_click_callback, it would be really useful to support the once property in some way: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#once (similar to how the capture property is exposed via the useCapture parameter).
emscripten_set_click_callback
once
capture
useCapture
One use case would be in the Audio Worklets example laid out at https://emscripten.org/docs/api_reference/wasm_audio_worklets.html - here the click callback is needed for the first click ever only, to unpause the audio, and should ideally be unset after that.
In many cases this could also serve as an alternative to #20983 ("Add a way to remove a single event listener").
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For actions such as
emscripten_set_click_callback
, it would be really useful to support theonce
property in some way: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#once (similar to how thecapture
property is exposed via theuseCapture
parameter).One use case would be in the Audio Worklets example laid out at https://emscripten.org/docs/api_reference/wasm_audio_worklets.html - here the click callback is needed for the first click ever only, to unpause the audio, and should ideally be unset after that.
In many cases this could also serve as an alternative to #20983 ("Add a way to remove a single event listener").
The text was updated successfully, but these errors were encountered: