I use $(window).bind('resize', ... as a reminder to
$(window).unbind('resize') when I'm done doing whatever I did.
rolfsf wrote:
>
> since what I'm doing is helping IE to properly size a div to fit the
> window, it probably doesn't matter - as long as it gets the size right in
> the end.
>
> Is there a meaningful difference between
> $(window).bind('resize', ...
> $(window).resize(...
> ?
>
>
> Karl Swedberg-2 wrote:
>>
>> On Mar 14, 2007, at 5:43 PM, Erik Beeson wrote:
>>
>>> IIRC, some browsers fire the resize event on load, and some don't.
>>> Watch out for that.
>>
>> Another thing you might need to watch out for is that some browsers
>> fire the resize event as soon as the resizing stops while others fire
>> it continuously as you resize. Can't remember which does which.
>>
>> --Karl
>>
>
>
--
View this message in context:
http://www.nabble.com/on-resize-in-jquery--tf3404986.html#a9486177
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/