sapo/Ink — pull request #370 by rogeriopvl (2014-06-24 18:08:43+00:00)
Title: Fix addClassName when passing invalid classes

This PR fixes issue #346

When `Ink.Dom.Css.addClassName` calls `element.classList.add` with empty or white-spaced strings, `element.classList.add` throws an error.

This PR changes `addClassName` so that it ignores empty strings to avoid the error.

Also added a test to prove the fix is correct.

Tks!