Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: made method/type format consistent

AddEventListener

addEventListener() is a common BrightSign method that is used to listen for an event.

...

Code Block
languagejs
target.addEventListener(type, listener);
  • [string] type: Specifies type string : Specifies the type of event to listen for

  • [listener function] listener: The object to be notified when the event (of the specified type) happens 

...

Code Block
languagejs
target.removeEventListener(type, listener);
  • [string] typetype string : Specifies the type of event to listen for

  • [listener function] listener: The   The object to be notified when the event (of the specified type) happens 

...