(elm: string | Element, cls: string)
| 822 | }; |
| 823 | |
| 824 | const hasClass = (elm: string | Element, cls: string) => { |
| 825 | const $elm = _get(elm); |
| 826 | // TINY-4520: DomQuery used to handle specifying multiple classes and the |
| 827 | // formatter relies on it due to the changes made for TINY-7227 |
| 828 | const classes = cls.split(' '); |
| 829 | return Type.isNonNullable($elm) && Arr.forall(classes, (c) => Class.has($elm, c)); |
| 830 | }; |
| 831 | |
| 832 | const show = (elm: string | Node | Node[]) => { |
| 833 | run(elm, (e) => Css.remove(SugarElement.fromDom(e), 'display')); |