I finally started biting off attempting to upgrade my sites to 1.3,
but am running into an issue with the Request object.  I have been
using this in my 1.2 code:

                    var req = new Request({
                            'url':url,
                            'data':data,
                            onSuccess: success_function
                        }).post();

However, in 1.3 it's not posting anything.  The docs appear to
indicate that this should still work; but it's not.

I do see a change in the 1.3 Request.js code:

1.2:
var methods = {};
['get', 'post', 'put', 'delete', 'GET', 'POST', 'PUT',
'DELETE'].each(function(method){
        methods[method] = function(){
                var params = Array.link(arguments, {url: String.type, data:
$defined});
                return this.send($extend(params, {method: method}));
        };
});

1.3:
var methods = {};
['get', 'post', 'put', 'delete', 'GET', 'POST', 'PUT',
'DELETE'].each(function(method){
        methods[method] = function(data){
                return this.send({
                        data: data,
                        method: method
                });
        };
});

Is there a reason that this was changed?

Reply via email to