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

Remove IE support and button bsChecked hack

This commit is contained in:
Alessandro Chitolina
2018-09-25 20:06:09 +02:00
committed by XhmikosR
parent e866b1ae43
commit 6cfc78f2d9
8 changed files with 8 additions and 133 deletions

View File

@@ -28,20 +28,6 @@ function normalizeDataKey(key) {
}
const Manipulator = {
setChecked(input, val) {
if (input instanceof HTMLInputElement) {
input.checked = val
input.bsChecked = val
}
},
isChecked(input) {
if (input instanceof HTMLInputElement) {
return input.bsChecked || input.checked
}
throw new Error('INPUT parameter is not an HTMLInputElement')
},
setDataAttribute(element, key, value) {
element.setAttribute(`data-${normalizeDataKey(key)}`, value)
},