uxebu / bonsai

BonsaiJS is a graphics library and renderer
http://bonsaijs.org
Other
1.96k stars 189 forks source link

Can't Modify SVG "class"Attribute #216

Open StrictlySkyler opened 11 years ago

StrictlySkyler commented 11 years ago

I need to be able to modify the "class" attribute of an SVG item, so as to apply CSS rules to it. Setting the attribute via the "attr" method doesn't do this. Does it exist elsewhere in the API?