HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.45k stars 529 forks source link

Safely destroy graph element along with all events binded for that element #283

Open prasad-1210 opened 9 years ago

prasad-1210 commented 9 years ago

Hi,

I'm dynamically creating Flotr2 Graphs and resetting container elemetn with simple emptry string. $("#contrainer").html("");

After creating 10 -15 times, application becoming slower and found that my click and select events on Flotr2 are piling up and not getting cleared..

So, is there any function to call and clean up everything related to container element?