neomjs / neo

The application worker driven frontend framework
https://neomjs.com
MIT License
2.83k stars 151 forks source link

Replace setTimeout() calls when possible #5625

Closed tobiu closed 1 month ago

tobiu commented 1 month ago

core.Base has a timeout() method, which will store all timeout ids and clear them, in case the instance gets destroyed.

in case we don't need to store the ids manually, we should replace the setTimeout() calls.