Fix addEvent() reference.

Closes #370.