This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Public Method Questions API

once()

Set up a one-time event listener. Will fire once and then stop listening.

Examples

questionsApp.once("beforeReady");
//Sets up a one-time listener for the 'beforeReady' event with this Question app instance.

Arguments

  • eventName string
    Name of the event that you want to listen to, once.
  • eventCallback callback
    Callback function that will be triggered once, when the event is fired.
  • context object
    Execution context that will be used for this when the callback function is triggered.

Return value

None (undefined).

Was this article helpful?