eternicode/bootstrap-datepicker — pull request #163 by defkode (2012-08-16 16:58:04+00:00)
Title: fix viewDate when on input field value attribute is missing or empty, but data-date attribute is present

consider following example:

in both situations $("#datepicker").datepicker() will cause to display current date as initial date.
Desired is to show date provided in date-date attribute (02-16-2012).

This commit fixes that.

Useful i.e. when asking for birthdate (when we prefer not filling upfront with some default)
After this patch is applied, it is possible to show empty input, but when user will focus he will get reasonable initial value (ie: 18 years ago, when we expect adults)

I guess this was a feature from the start, but because of subtle bug it was overlooked.