Optimising event handling: one large, or many small?
<p>Which pattern is best, and why?</p>

<pre><code>$myElements.delegate(selector, 'event1 event2', function () {
   if (event.type === 'event1') { /* Handle event 1 */ }
   if (event.type === 'event2') { /* Handle event 2 */ }
}
</code></pre>

<p><strong>OR</strong></p>

<pre><code>$myElements
   .delegate(selector, 'event1', function () {
       /* Handle event 1 */
}
   .delegate(selector, 'event2', function () {
       /* Handle event 2 */
}
</code></pre>

<p>In other words, is it better to have one large unified handler, or many small separate handlers?</p>
