1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 22:39:11 +02:00

Comply to the new rules.

This commit is contained in:
XhmikosR
2019-02-26 13:20:34 +02:00
parent 44e6abcba5
commit 46c037410b
44 changed files with 854 additions and 771 deletions

View File

@@ -26,7 +26,7 @@ function normalizeData(val) {
}
function normalizeDataKey(key) {
return key.replace(/[A-Z]/g, (chr) => chr.toLowerCase())
return key.replace(/[A-Z]/g, chr => chr.toLowerCase())
}
const Manipulator = {
@@ -47,7 +47,7 @@ const Manipulator = {
...element.dataset
}
Object.keys(attributes).forEach((key) => {
Object.keys(attributes).forEach(key => {
attributes[key] = normalizeData(attributes[key])
})