Fix events not firing with 'autoActivate: false' in the v2.x branch.

Fixes #333.
Closes #340.