MCPcopy
hub / github.com/ionic-team/ionic-framework / addElement

Function addElement

core/src/utils/animation/animation.ts:451–465  ·  view source on GitHub ↗
(el: Element | Element[] | Node | Node[] | NodeList | undefined | null)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

printIonErrorFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected