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

Add Manipulator object to add shortcuts for dom manipulations

This commit is contained in:
Johann-S
2017-09-05 14:35:52 +02:00
committed by XhmikosR
parent 44f38e4128
commit 9f9712b98c
7 changed files with 34 additions and 6 deletions

View File

@@ -7,6 +7,7 @@
import Data from './dom/data'
import EventHandler from './dom/eventHandler'
import Manipulator from './dom/manipulator'
import SelectorEngine from './dom/selectorEngine'
/**
@@ -93,7 +94,7 @@ class Button {
rootElement.classList.contains('disabled')) {
return
}
input.checked = !this._element.classList.contains(ClassName.ACTIVE)
Manipulator.setChecked(input, !this._element.classList.contains(ClassName.ACTIVE))
EventHandler.trigger(input, 'change')
}