perry_jia
20 Nov 2011, 9:10 PM
I test the JsonP abort method, and the error message is "Maximum call stack size exceeded", so i check the source code:
abort: function(request){
var requests = this.statics().requests,
key;
if (request) {
if (!request.id) {
request = requests[request];
}
// stack size exceeded, I think
this.abort(request);
} else {
for (key in requests) {
if (requests.hasOwnProperty(key)) {
this.abort(requests[key]);
}
}
}
},
And I found JsonP has another method handleAbort, but never called when I call abort().
abort: function(request){
var requests = this.statics().requests,
key;
if (request) {
if (!request.id) {
request = requests[request];
}
// stack size exceeded, I think
this.abort(request);
} else {
for (key in requests) {
if (requests.hasOwnProperty(key)) {
this.abort(requests[key]);
}
}
}
},
And I found JsonP has another method handleAbort, but never called when I call abort().