[jQuery] Re: scope issues in safari

2008-11-26 Thread thesubtledoctor
width = width + parseInt(thiswidth) + parseInt(padding); >       } >       jQuery(this).width(width+30); >     }); > > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of thesubtledoctor > Sent: Tuesday, November 25, 2008

[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; jQuery(this).children('div.word').each(functi