LeMisterV/jquery.hoverintent — Issue #2: Options Value is not respected
Author: Myztiq
Created: 2011-12-12 19:22:58+00:00
State: open

I have been digging through the code trying to figure out why the following does not work.

$('.targetDiv').hoverIntent(function(){
console.log('Over');
},function(){
console.log('Out');
},{
enterTimeout:1000,
leaveTimeout:2000,
});

What happens is it will log out Over right away instead of waiting a second. Also the leave timeout is not waiting any time either.It looks like the options element is not being used when the area with:
// Compatibility with Brian Cherne's plugin
runs. If I add options to the function: function(f, g) and log the options it has my data, but that is not getting passed anywhere.

What am I doing wrong?