diff --git a/platform/commonUI/browse/src/MenuArrowController.js b/platform/commonUI/browse/src/MenuArrowController.js index 309280f5fe..86cad25c0e 100644 --- a/platform/commonUI/browse/src/MenuArrowController.js +++ b/platform/commonUI/browse/src/MenuArrowController.js @@ -36,18 +36,13 @@ define( * @constructor */ function MenuArrowController($scope) { - var stop; - function showMenu(event) { var actionContext = {key: 'menu', domainObject: $scope.domainObject, event: event}; - stop = $scope.domainObject.getCapability('action').perform(actionContext); + $scope.domainObject.getCapability('action').perform(actionContext); } return { - showMenu: showMenu, - destroy: function () { - stop(); - } + showMenu: showMenu }; } diff --git a/platform/representation/src/actions/ContextMenuAction.js b/platform/representation/src/actions/ContextMenuAction.js index ee85b2f900..390531053e 100644 --- a/platform/representation/src/actions/ContextMenuAction.js +++ b/platform/representation/src/actions/ContextMenuAction.js @@ -107,17 +107,6 @@ define( } return { - /** - * Dismiss any visible menu. - * @method - * @memberof ContextMenuAction - */ - destroy: function () { - // Scope has been destroyed, so remove all listeners. - if (dismissExistingMenu) { - dismissExistingMenu(); - } - }, perform: perform }; }