Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix addClassName when passing invalid classes #370

Merged
merged 1 commit into from
Jun 24, 2014

Conversation

rogeriopvl
Copy link
Contributor

This PR fixes issue #364

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!

suskind pushed a commit that referenced this pull request Jun 24, 2014
Fix addClassName when passing invalid classes
@suskind suskind merged commit 01b964b into sapo:develop Jun 24, 2014
@suskind
Copy link
Contributor

suskind commented Jun 24, 2014

Good, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants