app/js/context_menu.js
// Makes context menu option element (takes text and function to be called on option click)
Makes context menu option element (takes text and function to be called on option click)
Makes context menu option element ( takes text and function to be called on option click )
function makeContextMenuOption(text, func) {
    let opt = document.createElement("LI");
    opt.className = "menu-option";
    opt.appendChild(document.createTextNode(text));
    opt.onclick = func;
    return opt;
}
function makeContextMenuOption ( text , func ) { let opt = document . createElement ( "LI" ) ; opt . className = "menu-option" ; opt . appendChild ( document . createTextNode ( text ) ) ; opt . onclick = func ; return opt ; }
Makes context menu option element (takes text and function to be called on option click)
Makes context menu option element ( takes text and function to be called on option click )