in partnership with mediatemple

Ticket #933 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

e is not defined when using Request.send()

Reported by: jamie Owned by:
Type: defect Priority: trivial
Milestone: Mootools version 1.2 Component: Core
Keywords: Cc:

Description

Request.send() results in 'e is not defined' error:

window.addEvent('domready', function() {
    var JSONreq = new Request.JSON({
        url: 'http://beta.slacked.org/feeds/get_feed',
        method: 'get'
    }).send();
});

It appears to be a problem with this part within send() (..or it could just be that my understanding of Request/send() is faulty - in which case, sorry for the noise)

this.headers.each(function(value, key){
    if (!$try(function(){
        this.xhr.setRequestHeader(key, value);
        return true;
    }.bind(this))) this.fireEvent('onException', [e, key, value]);
}, this);

Change History

Changed 2 months ago by jamie

Oops. Should have said this is with mootools trunk r1512.

Changed 2 months ago by kamicane

  • status changed from new to closed
  • resolution set to fixed

fixed in [1514]

Note: See TracTickets for help on using tickets.