Pass parameter to .addMenuItem method?
Posted: Thu Jul 12, 2012 3:31 am
I have a series of methods available in a dropdown menu (created with plugins.window.createPopupMenu()). For one of these methods I would ideally like to pass a parameter with it. As you know the syntax for ".addMenuItem" though just allows for passing the name of the method (without the parentheses following the name) as otherwise it would execute when the dropdown itself is activated. I can't see any way to pass a parameter to the method but does anyone know any way of doing that?