XHR now has a close method

This commit is contained in:
Arnout Kazemier
2011-06-20 21:13:01 +02:00
parent d88da380d5
commit 63d40941ff

View File

@@ -130,6 +130,18 @@
this.sendXHR.send(data);
};
/**
* Disconnects the established `XHR` connection.
*
* @returns {Transport}
* @api public
*/
XHR.prototype.close = function () {
this.onClose();
return this;
};
/**
* Handle the disconnect request.