Permalink
Browse files

util.inherits -> inherits

  • Loading branch information...
1 parent 000cfae commit d5f6f87ff3eed5e264dbacf5bc764374252d9f4b @akaspin committed Nov 1, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 index.js
View
2 README.md
@@ -17,7 +17,7 @@ simplify response flow control:
kaph.Handler.call(this, request, response, args);
this.context = context;
}
- sys.inherits(Handler, kaph.Handler);
+ util.inherits(Handler, kaph.Handler);
Handler.prototype.GET = function(name) {
if (name == undefined) {
View
4 index.js
@@ -2,7 +2,7 @@
* Kaph. Routerless HTTP handler for node.js
*/
-var util = require('util');
+var inherits = require('util').inherits;
var http = require('http');
var url = require('url');
var Buffer = require('buffer').Buffer;
@@ -282,5 +282,5 @@ function HttpError(code, reason) {
this.message = this.code + " " + this.reason;
Error.captureStackTrace(this);
}
-util.inherits(HttpError, Error);
+inherits(HttpError, Error);
exports.HttpError = HttpError;

0 comments on commit d5f6f87

Please sign in to comment.