title: jQuery hoverIntent: 'Uncaught TypeError: Cannot call method 'apply' of undefined'
body: <p>I'm using Brian Cherne's <code>hoverIntent.js</code> plugin for a project.  It's a great plugin but it seems to be broken in jQuery 1.7.1.  </p>
  
  <p>I'm trying to debug it but I'm not the most ace javascripter out there.  Can anyone tell me what I might need to look for in his code to fix the following error message:</p>
  
  <p><code>Uncaught TypeError: Cannot call method 'apply' of undefined</code></p>
  
  <p>That's what my Chrome console tells me.  I'm just not sure what to change.</p>
  
  <p>There is the following line of code in the plugin which contains <code>apply</code> in the string</p>
  
  <p><code>return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};</code></p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>I should post the link to Brian's full commented code.  It's here: <a href="http://cherne.net/brian/resources/jquery.hoverIntent.js">http://cherne.net/brian/resources/jquery.hoverIntent.js</a></p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>My script is as follows</p>
  
  <pre><code>//#nav-main dropdown effects                
  $('#nav-main ul li').hoverIntent(function () {
     $(this).find('.dropdown').stop(true,true).slideToggle('500');
  });
  </code></pre>