ChavezArquitectos / curvycorners

Automatically exported from code.google.com/p/curvycorners
0 stars 0 forks source link

curvyCorners.redraw breaks if autoPadDiv has other class #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Example line of code in jQuery that adds a class to multiple elements,
among them the autoPadDiv, breaking redraw:
$('*:last-child').addClass('last');

There is a line in the redraw function that checks if an element is autoPadDiv
if (contents.className === 'autoPadDiv') break;

If you change to something like:

if(contents.className.match('autoPadDiv') break;

This will be a bit more robust

Original issue reported on code.google.com by albin.la...@gmail.com on 31 Mar 2010 at 12:30

GoogleCodeExporter commented 8 years ago
Thank you for this bug report: you are quite correct in what you recommend and 
a fix 
has been incorporated into the latest revision, r168.

Original comment by c.1%smit...@gtempaccount.com on 9 Apr 2010 at 3:01