Fix event handlers callbacks

This is to fix https://github.com/paperjs/paper.js/issues/409.