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: classList.toString don't remove extra whitespace characters #29

Merged
merged 4 commits into from
Jul 4, 2017
Merged

Conversation

jeetiss
Copy link
Contributor

@jeetiss jeetiss commented Jun 28, 2017

No description provided.

@AvraamMavridis
Copy link
Collaborator

👍 thx. Will merge and publish soon.


try {
return Array.from(el.classList);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what this library is supposed to support, but keep in mind that Array.from is absent in some older browsers: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Browser_compatibility

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or ... I guess Babel will take care of that?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it will not take care actually, there is not babel-polyfill. Good catch! @ronkorving
@jeetiss Can you pls change it to slice ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added polyfill for Array.from from core-js
Maybe this better solution?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeetiss if we can achieve it without polyfill would be better, to keep the size of the lib as less as possible :)

@AvraamMavridis AvraamMavridis merged commit fbfaaf4 into ericclemmons:master Jul 4, 2017
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.

3 participants