Guest User

Untitled

a guest
Jun 13th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. send: function(data) {
  2. var self = this;
  3.  
  4. this.setupTimeoutTimer(this.timeout);
  5.  
  6. // IE needs some time to get started...
  7. // TODO: verify that this is still required for IE.
  8. if (this.type === TYPE_XDR) {
  9. // Do not unwrap .send method.
  10. // Required to run on a separate thread.
  11. window.setTimeout(function () {
  12. self.rq.send(data);
  13. }, IE_SEND_TIMEOUT);
  14. } else {
  15. this.rq.send(data);
  16. }
  17. }
  18. };
Add Comment
Please, Sign In to add comment