When 'things' in the following code is an array of paths...
things.square = [ RM.path("m 154.21525,71.431259 74.32805,0 0,70.496711 -74.32805,0 0,-70.496711 z").attr(attr),
RM.path("m 271.25132,77.933263 58.07304,0 0,56.409037 -58.07304,0 0,-56.409037 z").attr(attr2) ];
...then this code does not work:
things.square[1].node.setAttribute("id","clicker");
ie it fails to assign the second path in the array to id 'clicker'. However, when 'things' is just a single path...
things.square = RM.path("m 154.21525,71.431259 74.32805,0 0,70.496711 -74.32805,0 0,-70.496711 z").attr(attr);
...then it works fine:
things.square.node.setAttribute("id","clicker");
Why is this? And how can I get the first array of paths case to work? Thanks!