angular-ui/bootstrap — pull request #460 by g00fy- (2013-05-22 21:36:36+00:00)
Title: Optimalization & fix

- `$window` and `attrs` not used
- reduced number of `DOM` calls to `element.parent()`
- no need to `parent().bind('click',close)` when the menu wasn't open
- prevent bubbling & propagation of event on menu click (stacked `ng-click`)