avoidwork/abaaso — pull request #20 by fabien-d (2012-08-09 16:02:19+00:00)
Title: Using classList API when available

Basic performance test (call method x times) showed a lot of performance gain for addClass() and hasClass() while removeClass() didn't see much if any while using the classList API.

Supported browsers are pretty good (http://caniuse.com/classlist) but the the fallback is still in place so no harm.

I also added a "supports" object inside "client" for the feature detection test (instead of performing it every call). It made sense to me to have it in the client but I'd like your opinion...