check target rather than srcElement
Merge pull request #749 from guardian/trace-object-event-error

check target rather than srcElement