Permalink
Browse files

don't use browser/xhr

  • Loading branch information...
1 parent ef60c3a commit f0fb6870587b2f5bb3a895addd920703ac78f14e @kriszyp committed Jul 6, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/jsgi-client.js
View
@@ -1,10 +1,7 @@
/**
* HTTP Client using the JSGI standard objects
*/
-var defer = require("commonjs-utils/promise").defer;
-if (typeof XMLHttpRequest === "undefined") {
- XMLHttpRequest = require("browser/xhr").XMLHttpRequest;
-}
+var defer = require("promised-io/promise").defer;
exports.request = function(request){
var xhr = new XMLHttpRequest();

0 comments on commit f0fb687

Please sign in to comment.