JQuery same function for multiple events (ex: hover and click event)
<p>is there any way to execute same code for different events on the page?</p>

<pre><code>$('.class1').hover(function() {
   some_function();
});

$('.class1').click(function() {
   some_function();
});
</code></pre>

<p>instead to do something like:</p>

<pre><code>$('.class1').click.hover(function() {
   some_function();
});
</code></pre>
