edbentley / replay

A cross-platform JS game engine inspired by React
https://replay.js.org
MIT License
298 stars 11 forks source link

Add cleanup Sprite method #94

Closed edbentley closed 3 years ago

edbentley commented 3 years ago

The cleanup method is called when a Sprite is unmounted. It's not required for vanilla Replay, but if you're using some external libraries which need cleaning up it's useful.