1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-12 00:24:03 +02:00

Move _isShown() method to private section (#41220)

This commit is contained in:
Mohamad Salman
2025-04-25 19:21:47 +02:00
committed by GitHub
parent a03a9d6696
commit 3bb3c95188

View File

@@ -204,11 +204,11 @@ class Collapse extends BaseComponent {
this._queueCallback(complete, this._element, true)
}
// Private
_isShown(element = this._element) {
return element.classList.contains(CLASS_NAME_SHOW)
}
// Private
_configAfterMerge(config) {
config.toggle = Boolean(config.toggle) // Coerce string values
config.parent = getElement(config.parent)