Hacker News new | comments | show | ask | jobs | submit login

When working with DOM elements (SVG elements are also part of the DOM) it get messy pretty quickly. Think of it as syntactic sugar, because you can always opt for using standard arrays instead of using Raphael sets...

    var rects = [//insert rects here]
       rect.attr({fill: "red"});

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact