[jQuery] Re: scope issues in safari

2008-11-26 Thread thesubtledoctor
(this).width(width+30);     }); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thesubtledoctor Sent: Tuesday, November 25, 2008 10:44 AM To: jQuery (English) Subject: [jQuery] scope issues in safari I need to calculate the widths of the divs

[jQuery] scope issues in safari

2008-11-25 Thread thesubtledoctor
I need to calculate the widths of the divs of class 'clause' dynamically based on the widths of their contents, divs of class 'word'. The following code works correctly in Firefox: jQuery('div.clause').each(function(){ var width = 0;