eternicode/bootstrap-datepicker — pull request #226 by tgriesser (2012-10-22 17:18:52+00:00)
Title: adding 'remove' option for cleaning up datepicker

Working in a single page app, it becomes necessary to properly cleanup the events & data bound when removing a page from the app.

I've namespaced the data & events added on the datepicker an option of `datepicker('remove')` to take care of the clean up for the plugin. All tests are passing, and I've also documentation & a simple test of remove.

```
$('#datePicker').datepicker();

// removes the data, bindings, and container html for the datepicker
$('#datePicker').datepicker('remove');
```