I'd like to register a mousemove callback and immediately trigger that callback with the current mouse x/y position. Currently I'm doing this:
$('body').mousemove(hoverFunction).mousemove();
But hoverFunction's event receives undefined values for pageX and pageY as documented. Is there a clean way I can handle this besides having a mousemove callback that updates a global mouse position variable?