JSDoc Variable Warnings

Hi

I am using a popup function and hence have a bit of code along the lines

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

You are not using those variables, so why do you define them?

Try this instead:

function onRightClickNoBooking(event) {
   var popupmenu = plugins.window.createPopupMenu()

   popupmenu.addMenuItem('Add', addRecord)
   popupmenu.addMenuItem('Show Notes',addBookingNotes)

Good point ! sorry to waste the bandwidth :(