jquery/jquery — pull request #1632 by romamatusevich (2014-07-30 13:04:11+00:00)
Title: Attributes: addСlass and removeСlass performance improvements

It would be better for performance to cache element.className in variable: http://jsperf.com/cache-elem-classname-vs-non-cache-elem-classname