$(window) returns NULL when used inside .mousemove function

$(window) returns NULL when used inside .mousemove function

I would really appreciate some help on this issue:

I am using the following code

  1. console.log( $(window) );
  2. $("td.tooltip").mousemove(function(e){
  3.    console.log( $(window) );
  4. });

I encourage you to try this yourself. The window object returns NULL inside of the mousemove function. How can I get the dimensions of the window inside this function!?

Thanks in advance