mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
7c7f08b5e0
* Use `[].concat` instead of direct spreading nodelist Co-authored-by: XhmikosR <xhmikosr@gmail.com>
8 lines
226 B
JavaScript
8 lines
226 B
JavaScript
import 'popper.js'
|
|
import Tooltip from '../../dist/tooltip'
|
|
|
|
window.addEventListener('load', () => {
|
|
[].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
|
.map(tooltipNode => new Tooltip(tooltipNode))
|
|
})
|