1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-29 06:49:06 +02:00

Rename variables

This commit is contained in:
XhmikosR
2021-10-29 10:38:35 +03:00
parent 3ac4451d47
commit 62d86c07f8
15 changed files with 115 additions and 115 deletions

View File

@@ -5,24 +5,24 @@
* --------------------------------------------------------------------------
*/
function normalizeData(val) {
if (val === 'true') {
function normalizeData(value) {
if (value === 'true') {
return true
}
if (val === 'false') {
if (value === 'false') {
return false
}
if (val === Number(val).toString()) {
return Number(val)
if (value === Number(value).toString()) {
return Number(value)
}
if (val === '' || val === 'null') {
if (value === '' || value === 'null') {
return null
}
return val
return value
}
function normalizeDataKey(key) {