Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does CoffeeScript have a class destructor?

When a CoffeeScript class is instantiated a constructor called. This works. However, now I would like to delete a instantiaed object. Is there any destructor to call? (I would like to clear a timer)

like image 899
Alexis Avatar asked Sep 23 '26 14:09

Alexis


1 Answers

This isn't possible with JavaScript so it is not possible with CoffeeScript. If you have some clean up to do, you need to determine by yourself when the right moment is.

like image 91
TheHippo Avatar answered Sep 26 '26 05:09

TheHippo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!