I updated Flot from the old 0.8.3 version (the last one still available as .zip file) to the current one from npm.
Now I have two problems with the flot.selection plugin which I did not notice before:
1. my 'plotselected' event handler is always called twice (with the same ranges). I can build an ugly workaround to detect if I am called for the second time, but I would like to prevent that.
2. clearSelection() does not work, at least not from inside the plotselected event handler ... the only way to make the selection disappear is to click on the plot ... I even change some stuff in the plot, call setupGrid and draw and the selection is still visible afterwards.