Permalink
Browse files

add .aborted prop

  • Loading branch information...
tj committed Sep 17, 2012
1 parent dd583ce commit a71ca69c468a8b087fe0b99a221eaaf243de39e8
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/superagent.js
View
@@ -409,8 +409,10 @@
*/
Request.prototype.abort = function(){
+ if (this.aborted) return;
this.xhr.abort();
this.emit('abort');
+ this.aborted = true;
return this;
};

0 comments on commit a71ca69

Please sign in to comment.