$('#test', 'click', function(event){
  event = event.originalEvent;
});


var t = document.getElementById('test');
addEvent(t, 'click', function(event){
  event = event || window.event;
});