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:
committed by
XhmikosR
parent
e866b1ae43
commit
6cfc78f2d9
@@ -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)
|
||||
},
|
||||
|
Reference in New Issue
Block a user