code: function removeContextMenus (level) {
            while (_contextMenus.length && (!level || _contextMenus.length > level)) {
              var cm = _contextMenus.pop();
              $rootScope.$broadcast(ContextMenuEvents.ContextMenuClosed, { context: _clickedElement, contextMenu: cm });
              cm.remove();
            }
            if(!level) {
              $rootScope.$broadcast(ContextMenuEvents.ContextMenuAllClosed, { context: _clickedElement });
            }
          }
docs: Removes the context menus with level greater than or equal
  to the value passed. If undefined, null or 0, all context menus
  are removed.