mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 17:14:04 +02:00
Move _isShown() method to private section (#41220)
This commit is contained in:
@@ -204,11 +204,11 @@ class Collapse extends BaseComponent {
|
|||||||
this._queueCallback(complete, this._element, true)
|
this._queueCallback(complete, this._element, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Private
|
||||||
_isShown(element = this._element) {
|
_isShown(element = this._element) {
|
||||||
return element.classList.contains(CLASS_NAME_SHOW)
|
return element.classList.contains(CLASS_NAME_SHOW)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Private
|
|
||||||
_configAfterMerge(config) {
|
_configAfterMerge(config) {
|
||||||
config.toggle = Boolean(config.toggle) // Coerce string values
|
config.toggle = Boolean(config.toggle) // Coerce string values
|
||||||
config.parent = getElement(config.parent)
|
config.parent = getElement(config.parent)
|
||||||
|
Reference in New Issue
Block a user