1
0
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:
XhmikosR
2020-05-02 16:43:13 +03:00
parent 470e99ed5f
commit b9f7668cf6
5 changed files with 8 additions and 10 deletions

View File

@@ -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]
}
})