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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)