wout/svg.js — pull request #200 by pklingem (2014-06-03 00:25:42+00:00)
Title: add class manipulation functions to Element

adds the following methods to SVG.Element child classes:

* `classes`: returns an array of classes on the node
* `hasClass`: returns true if the node has the class, otherwise flase
* `addClass`: adds a class to the node
* `removeClass`: removes a class from a node
* `toggleClass`: toggles the presence of a class on a node