eternicode/bootstrap-datepicker — pull request #524 by mgray88 (2013-07-01 02:13:27+00:00)
Title: Support external changes to the date value

To be able to support external changes to the value, ```this.update()``` should be called every time the datepicker is shown. In addition, there is a difference between jquery's ```data('date')``` or ```data().date``` and ```attr('data-date')```. The former caches the value retrieved from the element, while the latter pulls from the element every time, which allows external frameworks to update the value. [See here](http://forum.jquery.com/topic/jquery-data-caching-of-data-attributes)

I ran into these issues while using Backbone.Stickit to update values in the html