Update events.js

fixed trigger return undefined bug
Merge pull request #11 from lianqin7/master

Update events.js