I am using a popup function and hence have a bit of code along the lines
- Code: Select all
function onRightClickNoBooking(event) {
var popupmenu = plugins.window.createPopupMenu()
var menuitem1 = popupmenu.addMenuItem('Add', addRecord)
var menuitem2 = popupmenu.addMenuItem('Show Notes',addBookingNotes)
The JSDocs are warning that the variables menuitem1, 2, 3 etc are not used. I have tried to insert the JSDoc flag @SuppressWarnings(unused) which is not working can anyone point me in the direction of the correct syntax to remove the warnings about these unused variables
Cheers
Gordon