angular-ui/bootstrap — pull request #1404 by dmitry-dedukhin (2013-12-13 13:08:51+00:00)
Title: Remove datepicker's popup on scope destroy in case appendToBody=true

In case when appendToBody set to true datepicker's popup is not destroyed on scope destroy.
This [fiddle](http://jsfiddle.net/WMgus/2/embedded/result/) illustrates the problem: click on the input field to see popup and the click on link "No datepicker". Popup stays on the page.