isuttell / sine-waves

Generate multiple configurable sine waves
Other
416 stars 67 forks source link

Add teardown #22

Open amk221 opened 1 year ago

amk221 commented 1 year ago

Currently there's no way to destroy an instance of SineWave, which leaves (or, can leave) multiple window resize event listeners hanging round and the animation loop running.