]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Move _isShown() method to private section (#41220)
authorMohamad Salman <139472418+MohamadSalman11@users.noreply.github.com>
Fri, 25 Apr 2025 17:21:47 +0000 (19:21 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Apr 2025 17:21:47 +0000 (10:21 -0700)
js/src/collapse.js

index 9f0c60cc5338bf75fc3af18523bbbf55da49cbba..b308863f468fb39597f096d49a28aedfae8521ad 100644 (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)