mvarshavsky
26 May 2011, 3:11 PM
abort : function(r) {
if (r && this.isLoading(r)) {
if (!request.timedout) {
request.aborted = true;
}
// Will fire an onreadystatechange event
r.xhr.abort();
}
else if (!r) {
var id;
for(id in this.requests) {
if (!this.requests.hasOwnProperty(id)) {
continue;
}
this.abort(this.requests[id]);
}
}
}
Uncaught ReferenceError: request is not defined on line 3, guessing because it should be referred to by 'r' instead
if (r && this.isLoading(r)) {
if (!request.timedout) {
request.aborted = true;
}
// Will fire an onreadystatechange event
r.xhr.abort();
}
else if (!r) {
var id;
for(id in this.requests) {
if (!this.requests.hasOwnProperty(id)) {
continue;
}
this.abort(this.requests[id]);
}
}
}
Uncaught ReferenceError: request is not defined on line 3, guessing because it should be referred to by 'r' instead