DatePicker leaks DOM Objects #500
Description
To reproduce:
Visit: http://gwtbootstrap.github.io/#component:datepicker
In Chrome, open Dev Tools and run document.getElementsByClassName('datepicker').length
You should get 10
Now jump back and forth between the following two links about four times:
http://gwtbootstrap.github.io/#gwt:
http://gwtbootstrap.github.io/#component:datepicker
On the console again run document.getElementsByClassName('datepicker').length
You should get about 81
Because the DatePicker JS is blithely injecting more datepicker
divs into the page, they just keep racking up. It's worth noting that these are being added directly to the root node of the page, rather than into the content frames that GWT normally uses.
I'd hope we could cleanly destroy these on transition to another presenter, but am not sure if that's the role of the component or the JS lib. Let me know what you think.