on method

void on(
  1. JSString event,
  2. JSFunction<Function> listener
)

Implementation

external void on(JSString event, JSFunction listener);