I fixed this for 1.3.1: https://github.com/mootools/mootools-core/commit/92a0d19faffbb806bea3c716aa59cace1e3b969b
Until then you can use the Request.js directly from the latest master on github and update this method yourself. On Dec 1, 9:34 pm, jdavidbakr <[email protected]> wrote: > 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?
