Separately apply callback before opening menu

The html of the context-menu might contain angular bindings that need to be evaluated before the menu opens.