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`)