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:
@@ -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])
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user