Hi all,
I'm using the hoverIntent Jquery plugin and I have a question regarding callback functions.
In one of my previous questions, it was pointed out that I should use function pointers for the callbacks.
My question is this: how do I pass parameters to the function pointers then?
function initHoverHandler(type) {
var config = {
over: overHandler, // This is the issue, how do I pass var type to overHandler
out: hideHandler
};
$(this).hoverIntent(config);
};
function overHandler(type) {
alert(type); // shows [object Object]
};