How to make this code work in jQuery 1.4.x?
<p>The on() method isn't supported in jQuery 1.4.x. Can someone tell me how to fix this so it's compatible?</p>

<pre><code>$(document).on({
  mouseenter: MyObj.mouseenter,
  mouseleave: MyObj.mouseleave
}, '.class');
</code></pre>
