The on() event handler function is now a decorator