mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 23:28:14 +00:00
[Browse] Removed destroy functions
Removed destroy functions from menu arrow controller and contetxt menu action as suggested. #33, #47.
This commit is contained in:
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user