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

Slideout menu won't work if html contains words 'slideout-menu' #187

Closed
ingria opened this issue Aug 3, 2016 · 1 comment
Closed

Slideout menu won't work if html contains words 'slideout-menu' #187

ingria opened this issue Aug 3, 2016 · 1 comment

Comments

@ingria
Copy link

ingria commented Aug 3, 2016

This doesn't work:

<!-- I'm binding my js to bem-like markup with js- prefix, not IDs: -->
<nav class="js-slideout-menu">
    ...
</nav>

Because this will return true.

Script's logic should be similar to element.classList.contains() method.

@pazguille
Copy link
Member

#196

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

No branches or pull requests

2 participants