When defining a function in my form I wanted to specify the parameters like so:
function myFunction(id, pageCount)
{
...
}
But Servoy (v4.1.0 rc1 at least) doesn’t seem to like this syntax and “eats” the parameters as soon as I save(!). Any ideas why this syntax isn’t allowed? It much less verbose and cleaner than (IMO):
function myFunction()
{
var id = arguments[0]
var pageCount = arguments[1]
...
}
As far as I can tell Rhino (the javascript implementation used by Servoy) supports this syntax.
Is this a bug?