Minor event handler refactoring.
Merge branch 'master' into gh-pages