methodArguments strange behaviour

Given the following piece of code:

var _pm = plugins.window.createPopupMenu()
var _mi = _pm.addMenuItem('A',myMethod)
_mi.methodArguments = ["a","b"]
_pm.show(event.getSource())

this is what the arguments array looks like when myMethod is called:

Arguments {0:-1,1:-1,2:false,3:null,4:"A",5:"a",6:"b",length:7}

According to the wiki this is correct (http://wiki.servoy.com/display/public/DOCS/MenuItem#MenuItem-methodArguments), but why??? What do these first five parameters mean? And if we don’t know what they mean, why are they passed to the callback method? And if they mean something why don’t put them in an object (something like JSEvent).

Now the callback method cannot be a method of which we cannot (or don’t want to) change the parameters. Furthermore this is not compatible with the way plugins.popupmenu (deprecated!?) passes the arguments to the callback method.

This post can help you
http://forum.servoy.com/viewtopic.php?f=15&t=13859&start=0&st=0&sk=t&sd=a