Closed kimmobrunfeldt closed 8 years ago
Hi @kimmobrunfeldt, calling dispose
is not mandatory, generally speaking. I mainly added that method so that it could be inherited and overridden if necessary by objects that extend Tweenable
. I felt that a base object should provide some form of a cleanup method. If removing it fixes https://github.com/kimmobrunfeldt/progressbar.js/issues/107, it should be safe to do so.
Great, thanks for the quick reply!
Hi,
Is calling .dispose() mandatory when I no longer need the tweenable object? Shouldn't GC automatically remove the tweenable object when references to the tweenable are gone. E.g.: