(elem)
| 2162 | } |
| 2163 | |
| 2164 | function show(elem) { |
| 2165 | elem = typeof elem === 'string' ? getId(elem) : elem; |
| 2166 | if (!elem || !elem.classList) { |
| 2167 | elementNotFound(elem); |
| 2168 | return; |
| 2169 | } |
| 2170 | if (elem.classList.contains('hidden')) elem.classList.toggle('hidden'); |
| 2171 | } |
| 2172 | |
| 2173 | function disable(elem, disabled) { |
| 2174 | elem = typeof elem === 'string' ? getId(elem) : elem; |
no test coverage detected