eternicode/bootstrap-datepicker — pull request #197 by tatey (2012-09-27 04:42:11+00:00)
Title: Make picker available in show and hide events.

Now you can get to the picker without searching the DOM. Useful if you need to customise the picker on show or hide.

We use it to scroll the screen if the picker is partially hidden.

``` javascript
$('#date').on('show', function(e) {
var picker = e.picker;
if (picker.isOutOfView()) {
picker.scrollIntoView(150);
}
});
```