Added id attribute to all objects.
Added id to all objects
Thanks! Looks good. We also need to increment those ids when creating new objects. Similar to the way it's done in Raphael.js
On a second thought, the SVG-like id should probably be different from numeric UID. SVG-like id can be anything like "foo", "bar123", or "baz_xx_222". UID, on the other hand, should be strictly numeric and incremented for each object.
Will do a clean pull request.
We really needs SVG ids, could you please create the new pull request ?
I don't use UID, I don't understand why my simple solution hasn't been accepted ?