Permalink
Browse files

Edited Http/Server.js - removed unneeded closure.

  • Loading branch information...
1 parent 16877af commit 812203ef84ab821136966c52e63cbf8d5f023f18 @fk1blow committed May 27, 2011
Showing with 10 additions and 12 deletions.
  1. +10 −12 lib/Http/Server.js
View
@@ -1,26 +1,24 @@
var HttpDispatcher = require('./HttpDispatcher');
-var Utils = (function() {
- var isFavicon = function(req) {
+var Utils = {
+ isFavicon: function(req) {
if(req['url'] == '/favicon.ico')
return true;
}
- var isUnknown = function(req) {
+ isUnknown: function(req) {
if(typeof(req.method) == 'undefined')
return true;
- }
-
- return {
- isConcreteRequest: function(req) {
- if(isFavicon(req) || isUnknown(req)) {
- return false;
- }
- return true;
+ },
+
+ isConcreteRequest: function(req) {
+ if(this.isFavicon(req) || this.isUnknown(req)) {
+ return false;
}
+ return true;
}
-}());
+};
/**

0 comments on commit 812203e

Please sign in to comment.