Skip to content

Add Body Class and Ignore Class#143

Merged
feimosi merged 3 commits intofeimosi:devfrom
davidhellmann:dev
Sep 15, 2017
Merged

Add Body Class and Ignore Class#143
feimosi merged 3 commits intofeimosi:devfrom
davidhellmann:dev

Conversation

@davidhellmann
Copy link
Copy Markdown
Contributor

Hey, here is a new Pull Request. Now you can see it better I hope :)
Sorry for the late response!

@feimosi
Copy link
Copy Markdown
Owner

feimosi commented Jan 31, 2017

No problem, thanks! There are a few linter errors, could you take a look?
https://travis-ci.org/feimosi/baguetteBox.js/jobs/195095908#L188

@XhmikosR
Copy link
Copy Markdown
Contributor

@feimosi: just fix them yourself and push to @davidhellmann fork and then just squash + merge.

@feimosi
Copy link
Copy Markdown
Owner

feimosi commented Sep 15, 2017

I can't push to other's forks without some extra permission, can I?

@XhmikosR
Copy link
Copy Markdown
Contributor

XhmikosR commented Sep 15, 2017 via email

@feimosi
Copy link
Copy Markdown
Owner

feimosi commented Sep 15, 2017

@XhmikosR Interesting, thanks! :)

@feimosi feimosi merged commit f3a6cfc into feimosi:dev Sep 15, 2017
@XhmikosR
Copy link
Copy Markdown
Contributor

@feimosi: I replied via email but you probably missed it.

Now regarding this PR... are you sure all supported browsers have classList support?
We should add ESLint plugin compat to automate this.

@feimosi
Copy link
Copy Markdown
Owner

feimosi commented Sep 16, 2017

@XhmikosR I didn't get that message.
Anyway, I've added an extra check for classList support here:
https://github.com/feimosi/baguetteBox.js/pull/143/files#diff-4634650f8cf2cdceb34291a9bcf4c23fR472

I'll test test thoroughly before the next release too.

@XhmikosR
Copy link
Copy Markdown
Contributor

@feimosi: I wouldn't personally go with that. If you still want to support < IE 9 you should do this https://plainjs.com/javascript/attributes/adding-removing-and-testing-for-classes-9/

@feimosi
Copy link
Copy Markdown
Owner

feimosi commented Sep 16, 2017

Sure, it works only in newer IE, but using this option won't break anything, so I don't see any hazard here. Treat it as progressive enhancement, I just need to mention that in the docs.

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