eternicode/bootstrap-datepicker — pull request #605 by slara (2013-08-20 00:12:51+00:00)
Title: Don't reset selected date when the element is a button.

If the element is not an input, the selected date changes to 'today' on
update event as the input val() is undefined. This commit adds `this.element.text()` as an alternative to
input val() method.