0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/js/tests/integration/bundle-modularity.js

8 lines
236 B
JavaScript
Raw Normal View History

2019-10-02 14:32:29 +02:00
import Tooltip from '../../dist/tooltip'
2020-06-19 10:17:01 +02:00
import '../../dist/carousel'
2019-10-02 14:32:29 +02:00
window.addEventListener('load', () => {
[].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]'))
2019-10-02 14:32:29 +02:00
.map(tooltipNode => new Tooltip(tooltipNode))
})