Why does this addEventListener function fail?
<p>I was trying to use an object in an addEventListener function to assign multiple events at once. Why did it not work?</p>

<pre><code>function $(id) {
    return document.getElementById(id);
}

$('t').addEventListener({
    onclick: function() {
        alert('hi');
    },
    onmouseover: function() {
        alert('hey');
    }
}, true, false);
</code></pre>
