".resize" event don't work with "offset" together
<p>Can anyone tell me what is wrong with this code? it just crashes my browser and that's all...</p>

<pre><code>$(window).resize(function() {
    var p = $("#outer_wrap");
    var offset = p.offset();
    alert("left: " + offset.left + ", top: " + offset.top);
});
</code></pre>
