-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
update alert documentation without jquery #27062
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
Conversation
5a664f2 to
bd25b32
Compare
| {% highlight js %} | ||
| $('.alert').alert() | ||
| var alertList = document.querySelectorAll('.alert') | ||
| alertList.forEach(function (alert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
var alertList = document.querySelectorAll('.alert')
Array.from(alertList).forEach(...);?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array.from isn't widely supported and we can use forEach on NodeList so I won't change this line but thank you for your feedback @vsn4ik it's always appreciated 😉
|
@Johann-S: feel free to squash and merge when tests pass. |
|
@XhmikosR test won't pas unfortunately 😢 because for an unknown reason they fail on Sauce Labs but they works very well on my computer, do you have the time to check that on your computer ? |
Rewrite our alert page documentation without the use of jQuery