Fixed a bug with the events object: the syntax has changed, the docs has been updated to reflect the change.