Questions API Methods
once()
Set up a one-time event listener. Will fire once and then stop listening.
Examples
questionsApp.question('01-a__56732842-dbe1-47a6-ae48-5a126f2b13ba').once("validated");
//Sets up a one-time listener for the 'validated' event with this Question.
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
).