Currently, if you try to use an arguments object as a passed parameter, it gets wrapped up in another arguments object.
The only workaround I can currently think of is to do something like:
- Code: Select all
switch(arguments.length)
{
case 1: globals[methodName](arguments[0]);break;
case 2: globals[methodName](arguments[0],arguments[1]);break;
etc....
}
Any ideas?
greg.