Chapter 299: Observer.getAll
Core Idea
Gets an Array of all Observers that have been created (and not killed). This can be useful if, for example, your framework requires that you kill everything like on a routing change.
Code Examples
Observer.getAll((o) => o.kill());
- What it demonstrates: typical usage of Observer.getAll in a GSAP animation.
Key Takeaways
- Gets an Array of all Observers that have been created (and not killed). This can be useful if, for example, your framework requires that you kill everything like on a routing change.