Fixes AVM1 onXxxxx event handler
Merge pull request #174 from yurydelendik/avm1-2

Fixes AVM1 onXxxxx event handler