Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- send: function(data) {
- var self = this;
- this.setupTimeoutTimer(this.timeout);
- // IE needs some time to get started...
- // TODO: verify that this is still required for IE.
- if (this.type === TYPE_XDR) {
- // Do not unwrap .send method.
- // Required to run on a separate thread.
- window.setTimeout(function () {
- self.rq.send(data);
- }, IE_SEND_TIMEOUT);
- } else {
- this.rq.send(data);
- }
- }
- };
Add Comment
Please, Sign In to add comment