* Gets the container or sets it if it's not set. * @param {HTMLElement} $el * @returns {HTMLElement}
($el)
| 178 | * @returns {HTMLElement} |
| 179 | */ |
| 180 | function getContainer($el) { |
| 181 | const res = $container; |
| 182 | |
| 183 | if ($el) { |
| 184 | $container = $el; |
| 185 | } |
| 186 | |
| 187 | return res || $sidebar.get(".container"); |
| 188 | } |