Topic: xajax.request mode:synchronous doesn't work

Well, I think there is a bug in xajax_core.js.

When I call:

        var arguments = [ 'getdata', '1', '2' ];
        var ret = xajax.request( { xjxfun: 'class_action' }, { parameters: arguments }, {mode:'synchronous'} );
        console.log(ret);

Result is: false

After some hours of search I found the problem.

xajax.request = function() {
    var numArgs = arguments.length;
    if (0 == numArgs)
        return false;
    
    var oRequest = {}
    if (1 < numArgs)
        oRequest = arguments[1];
    oRequest.functionName = arguments[0];

The third argument "mode" is not used. All request are send asynchronous.

I add:

    if (2 < numArgs)
        oRequest.mode = arguments[2];

And it works fine.

Can anyone confirm that it is correct?

--
best regards