on method

void on(
  1. String event,
  2. JSFunction callback
)

Implementation

external void on(String event, JSFunction callback);