Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rendtion added for createXhr

  • Loading branch information...
commit ed981284b70839b3edf5dc132924b8e66477ce65 1 parent 40b87bb
@adamsilver adamsilver authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 functions/createXhr/rendition1.js.js
View
12 functions/createXhr/rendition1.js.js
@@ -0,0 +1,12 @@
+var createXhr;
+
+if(isHostMethod(global, "XMLHttpRequest")) {
+ try {
+ if(new global.XMLHttpRequest()) {
+ createXhr = function() {
+ return new XMLHttpRequest();
+ };
+ }
+ }
+ catch(e) {};
+};
Please sign in to comment.
Something went wrong with that request. Please try again.