Open this page in the API Guide
CommandMenu.closeOnClickAwayCallback Property
Gets or sets an optional function called when the mouse is clicked outside the command menu, returning a value customizing whether the popup should close.
Property Value
Type: Function
A function passed the click or touch jQuery.Event