on - Methods - Annotations API

Annotations API Methods

on()

Binds an event handler (callback) that will be invoked whenever an event is triggered.

Implemented using the once method of the BackboneJS Event object.

Examples

itemsApp.assessApp().annotationsApp().on('error', function () {
  // onError callback
});

Arguments

  • eventName string

    The name of the event that the callback will be bound to.

  • callback function

    The function that will be invoked whenever the specified event is triggered.

  • context object

    The context for which the callback should be invoked.

Return value

None (undefined).

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.