[Browse] Created Menu Arrow

Created a menu-arrow respresentation. #33.
This commit is contained in:
Sarah Hale
2015-06-30 13:33:40 -07:00
parent 7b4ef142f5
commit 917d98bd3e
6 changed files with 101 additions and 5 deletions

View File

@ -61,8 +61,7 @@ define(
goUp = eventCoors[1] + menuDim[1] > winDim[1],
menu;
//console.log('in showMenu() in ContextMenuGesture');
//console.log('domainObject is ', domainObject);
console.log('in showMenu() in ContextMenuGesture');
// Remove the context menu
function dismiss() {
@ -92,6 +91,8 @@ define(
"context-menu-holder": true
};
console.log(scope);
// Create the context menu
menu = $compile(MENU_TEMPLATE)(scope);
@ -107,7 +108,10 @@ define(
// When context menu event occurs, show object actions instead
element.on('contextmenu', showMenu);
$rootScope.$on('leftContextual', showMenu);
// This allows actions besides only right-clicks to trigger a
// context menu
$rootScope.$on('contextmenu', showMenu);
return {
/**