julienw/dollardom — pull request #2 by fedemp (2011-11-11 19:23:58+00:00)
Title: support for native classList

I've modified `_hasClass()`, `_addClass()` and `_removeClass` to use the native method `classList` in browsers that support it.
I've made a small testcase at http://jsperf.com/element-classlist-vs-element-classname/ that shows that this method works faster than using `indexOf`on the `className`.