(el: Element | Element[] | Node | Node[] | NodeList | undefined | null)
| 449 | }; |
| 450 | |
| 451 | const addElement = (el: Element | Element[] | Node | Node[] | NodeList | undefined | null) => { |
| 452 | if (el != null) { |
| 453 | if ((el as Node).nodeType === 1) { |
| 454 | elements.push(el as any); |
| 455 | } else if ((el as NodeList).length >= 0) { |
| 456 | for (let i = 0; i < (el as NodeList).length; i++) { |
| 457 | elements.push((el as any)[i]); |
| 458 | } |
| 459 | } else { |
| 460 | printIonError('createAnimation - Invalid addElement value.'); |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | return ani; |
| 465 | }; |
| 466 | |
| 467 | const addAnimation = (animationToAdd: Animation | Animation[]) => { |
| 468 | if ((animationToAdd as any) != null) { |
nothing calls this directly
no test coverage detected