eternicode/bootstrap-datepicker — pull request #273 by arlm (2012-12-07 17:36:11+00:00)
Title: Do not create another template if already there is a template on the page

I have put the component on a single-page application using Backbone.js and when another state renders the page and the state is switched back to the page that has the component another template is rendered and appended to

.

This patch makes it so that is checks the existence of the element and just picks it instead of rendering another template.