Allow class+method pairs to be passed as an event function.