Permalink
Browse files

Fix module references

  • Loading branch information...
1 parent 31917ad commit cea146f24cf0214fbe59086ee844755d2942fb78 @kriszyp committed Jun 20, 2011
Showing with 10 additions and 10 deletions.
  1. +4 −4 engines/node/http-client.js
  2. +2 −2 engines/rhino/delay.js
  3. +2 −2 engines/rhino/fs.js
  4. +2 −2 engines/rhino/rhino-http-client.js
@@ -1,15 +1,15 @@
/**
* HTTP Client using the JSGI standard objects
*/
-var defer = require("../../../promise").defer,
- when = require("../../../promise").when,
- LazyArray = require("../../../lazy-array").LazyArray,
+var defer = require("../../promise").defer,
+ when = require("../../promise").when,
+ LazyArray = require("../../lazy-array").LazyArray,
http = require("http"),
https = require("https"),
parse = require("url").parse;
// configurable proxy server setting, defaults to http_proxy env var
-exports.proxyServer = require("../../../process").env.http_proxy;
+exports.proxyServer = require("../../process").env.http_proxy;
exports.request = function(originalRequest){
// make a shallow copy of original request object
View
@@ -1,8 +1,8 @@
/*
* Provides time-based promise-returning delay and schedule functions for Rhino
*/
-var defer = require("../../../promise").defer,
- LazyArray = require("../../../lazy-array").LazyArray;
+var defer = require("../../promise").defer,
+ LazyArray = require("../../lazy-array").LazyArray;
// returns a promise that is fulfilled after the given number of milliseconds
exports.delay = function(ms){
var deferred = defer();
View
@@ -1,6 +1,6 @@
var File = require("file"),
- LazyArray = require("../../../lazy-array").LazyArray,
- defer = require("../../../promise").defer;
+ LazyArray = require("../../lazy-array").LazyArray,
+ defer = require("../../promise").defer;
for(var i in File){
exports[i] = File[i];
}
@@ -2,10 +2,10 @@
* HTTP Client using the JSGI standard objects
*/
-var LazyArray = require("../../../lazy-array").LazyArray;
+var LazyArray = require("../../lazy-array").LazyArray;
// configurable proxy server setting, defaults to http_proxy env var
-exports.proxyServer = require("../../../process").env.http_proxy;
+exports.proxyServer = require("../../process").env.http_proxy;
exports.request = function(request){
var url = new java.net.URL(request.url),

0 comments on commit cea146f

Please sign in to comment.