* Add and initialize `AnimationPlugin` to the animation. * * @param plugin Plugin to be added * @returns The animation
(plugin: AnimationPlugin)
| 261 | * @returns The animation |
| 262 | */ |
| 263 | addPlugin(plugin: AnimationPlugin) { |
| 264 | plugin.init(this); |
| 265 | this.plugins.push(plugin); |
| 266 | |
| 267 | return this; |
| 268 | } |
| 269 | |
| 270 | /** |
| 271 | * Cleans all of the resources that might cause memory leaks (e.g. plugins). |
no test coverage detected