kitajchuk / hobo

A very small, modular DOM utility for modern web apps.
MIT License
13 stars 2 forks source link

addClass method adds leading white space when node doesn't have a class #5

Closed ghost closed 8 years ago

ghost commented 8 years ago

Found a little bug in this method. To duplicate, you can use removeClass() followed by `addClass("test"), and the result should be something like:

<div class=" test"></div>