Ticket #933 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.