mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 22:58:14 +00:00
[Browse] Menu action called correctly
Both the menu gesture and the menu arrow now correctly call the menu action. #33.
This commit is contained in:
@ -36,7 +36,7 @@ define(
|
||||
* @constructor
|
||||
*/
|
||||
function MenuArrowController($scope) {
|
||||
var domainObject = $scope.domainObject,
|
||||
var //domainObject = $scope.domainObject,
|
||||
context;
|
||||
|
||||
function showMenu(event) {
|
||||
@ -44,18 +44,19 @@ define(
|
||||
|
||||
console.log('$scope ', $scope);
|
||||
console.log('$scope.domainObject ', $scope.domainObject);
|
||||
console.log('domainObject ', domainObject);
|
||||
//console.log('domainObject ', domainObject);
|
||||
console.log('event ', event);
|
||||
|
||||
context = {key: 'menu', event: event, domainObject: domainObject};
|
||||
domainObject.getCapability('action').perform(context);
|
||||
context = {key: 'menu', event: event, domainObject: $scope.domainObject};
|
||||
$scope.domainObject.getCapability('action').perform(context);
|
||||
}
|
||||
|
||||
/*
|
||||
// attempt to set the domain object
|
||||
$scope.$watch('domainObject', function (c) {
|
||||
domainObject = c;
|
||||
console.log('watcher called');
|
||||
});
|
||||
*/
|
||||
|
||||
return {
|
||||
showMenu: showMenu
|
||||
|
Reference in New Issue
Block a user