Let event handlers be functions