title: offset().top returning window object
body: <p>i can't get this through. </p>
  
  <p>I need to get offset().top from a jquery object, this is my code</p>
  
  <pre><code>parentLi = $(element).parents("li");
  parentLiOffset = parentLi.offset();
  top = parentLiOffset.top;
  left = parentLiOffset.left;
  console.log(parentLiOffset);
  console.log(top);
  console.log(left);
  </code></pre>
  
  <p>And this is what console gives back:</p>
  
  <pre><code>Object { top=208, left=311}  
  Window /demo/
  311
  </code></pre>
  
  <p>as you can see, I can't manage to get the "top" value. I'm usinf firefox, if that makes any difference.</p>
  
  <p>Thanks!</p>