Insert break statements into switch
This commit is contained in:
parent
39aa549ac9
commit
730dfdd527
@ -21,10 +21,12 @@ export const filterNode = (elementFilter: (element: Element) => void) => (
|
|||||||
|
|
||||||
case Node.DOCUMENT_FRAGMENT_NODE:
|
case Node.DOCUMENT_FRAGMENT_NODE:
|
||||||
iterateElement(filterNode(elementFilter), node as DocumentFragment);
|
iterateElement(filterNode(elementFilter), node as DocumentFragment);
|
||||||
|
break;
|
||||||
|
|
||||||
case Node.ELEMENT_NODE:
|
case Node.ELEMENT_NODE:
|
||||||
iterateElement(filterNode(elementFilter), node as Element);
|
iterateElement(filterNode(elementFilter), node as Element);
|
||||||
elementFilter(node as Element);
|
elementFilter(node as Element);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// do nothing
|
// do nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user