mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 13:29:06 +02:00
Switch to String.includes()
This commit is contained in:
@@ -679,7 +679,7 @@ class Tooltip {
|
||||
const dataAttributes = Manipulator.getDataAttributes(this.element)
|
||||
|
||||
Object.keys(dataAttributes).forEach(dataAttr => {
|
||||
if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
|
||||
if (DISALLOWED_ATTRIBUTES.includes(dataAttr)) {
|
||||
delete dataAttributes[dataAttr]
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user