Spy addEventListener/attachEvent calls