$.contextMenu is a management facility for - you guessed it - context menus. It was designed for an application where there are hundreds of elements that may show a context menu - so intialization ...
To use and configure, check out the setup documentation. For advanced usage, check out the configuration reference and custom instrumentation API. Confused about the terminology of APM? Take a look at ...