fix #161: event delegation does not properly handle event.stopPropagation()

I'm not quite sure where to begin on test cases for this, but will happily add them with a little direction.