angular-ui/bootstrap — pull request #2820 by qstiegler (2014-10-13 07:32:10+00:00)
Title: Fix if the openScope doesn´t exist anymore

If the dropdown is not available in the DOM anymore but with the $document.bind the click event will be called it creates an error as you can´t $apply on a "null" element. This resolves the problem.