DmitryBaranovskiy/raphael — pull request #592 by narenranjit (2012-06-19 22:23:18+00:00)
Title: Re-using pattern fills

While using patterns (from external images) as a fill, i.e., fill:url(img.gif) the library was always appending new pattern elements to the dom rather than re-using existing ones. This causes a noticeable flicker on some cases while there is a new http request to get the image file.

Try http://forio.com/simulate/latinovote/map on firefox and move the sliders to see the flickering version. If you inspect the dom you can see the new patterns being attend each time the slider moves.

Try http://latinovotemap.org with the fixed version to see that there is no flicker.

Great library btw!