Skip to content

Commit

Permalink
Move _isShown() method to private section
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadSalman11 authored Feb 10, 2025
1 parent c5be828 commit aac4d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aac4d5e

Please sign in to comment.