Hide popup menu when click outside Changed references to document and window to $document and $window
Hide popup menu when click outside
Changed references to document and window to $document and $window

configit/ngyn