Permalink
Browse files

rendtion added for createXhr

  • Loading branch information...
1 parent 40b87bb commit ed981284b70839b3edf5dc132924b8e66477ce65 @adamsilver adamsilver committed Feb 6, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 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) {};
+};

0 comments on commit ed98128

Please sign in to comment.