eternicode/bootstrap-datepicker — pull request #156 by tcrosen (2012-08-08 15:34:18+00:00)
Title: Fixed "blur" functionality inconsistencies

Hello, thanks for the great plugin. I've been having problems with IE's handling of the `blur()` event so I replaced the functionality with something more consistent and as a result was able to remove some excess code that was required to manage that event. Summary of my changes:

- Removed `blur()` event due to inconsistencies between browsers
- Removed IE-only `_hide()` event, no longer required without `blur()`
- Removed targeted `mousedown()` event as it has been replaced by global handler
- Added TAB navigation and global click handler to replace `blur()` functionality, similar to jQuery UI datepicker
- Removed all unnecessary calls to `event.stopPropagation()`. Events called through jQuery's `$.on()` handler cannot stop propagation.
- Added test cases to support new functionality and ensure existing functionality remains operational

Cheers,

Terry