Update JIT.js

This commit is contained in:
Robert Best 2016-09-28 13:03:44 -04:00 committed by GitHub
parent 2c3b387e42
commit 10a2782f85

View file

@ -1305,6 +1305,9 @@ const JIT = {
// create new menu for clicked on node
var rightclickmenu = document.createElement('div')
rightclickmenu.className = 'rightclickmenu'
//prevent the custom context menu from immediately opening the default context menu as well
rightclickmenu.setAttribute('oncontextmenu','return false')
// add the proper options to the menu
var menustring = '<ul>'
@ -1550,6 +1553,8 @@ const JIT = {
// create new menu for clicked on node
var rightclickmenu = document.createElement('div')
rightclickmenu.className = 'rightclickmenu'
//prevent the custom context menu from immediately opening the default context menu as well
rightclickmenu.setAttribute('oncontextmenu','return false')
// add the proper options to the menu
var menustring = '<ul>'