Change default behavior of dispatchEvent() shortcut in case when event is send as param