MCPcopy
hub / github.com/greensock/GSAP / getById

Method getById

src/gsap-core.js:1738–1746  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1736 }
1737
1738 getById(id) {
1739 let animations = this.getChildren(1, 1, 1),
1740 i = animations.length;
1741 while(i--) {
1742 if (animations[i].vars.id === id) {
1743 return animations[i];
1744 }
1745 }
1746 }
1747
1748 remove(child) {
1749 if (_isString(child)) {

Callers 10

gsap-core.jsFile · 0.80
_parseAnimationFunction · 0.80
_timeToProgressFunction · 0.80
_getAnimationByIdFunction · 0.80
GSDevTools.jsFile · 0.80
getByIdFunction · 0.80
_parseAnimationFunction · 0.80
_timeToProgressFunction · 0.80
_getAnimationByIdFunction · 0.80
GSDevTools.jsFile · 0.80

Calls 1

getChildrenMethod · 0.95

Tested by

no test coverage detected