Port back-compat for `.events = {...}` syntax.