hoverIntent conditional interval...

hoverIntent conditional interval...

I want to change the value of the "interval" option in the hoverIntent plugin, based on different conditions, ie.

  1. if ($([selector]).hasClass('x'))
  2.       //polling interval
  3. } else {
  4.       //different polling interval
  5. }
I'm just not sure how to write this properly.

Thanks!