Comparing version 0.5.3 to 0.5.4
@@ -41,5 +41,3 @@ var http = require('http'); | ||
this.on('request', function(request, response) { | ||
self._find(request, response); | ||
}); | ||
this.on('request', this.route); | ||
@@ -105,2 +103,7 @@ if (options && options.hang) { | ||
Router.prototype.detach = function() { | ||
this.removeListener('request', this.route); | ||
return this.route; | ||
}; | ||
Router.prototype.upgrade = function(fn) { | ||
@@ -107,0 +110,0 @@ this.on('upgrade', fn); |
{ | ||
"name":"router", | ||
"version":"0.5.3", | ||
"version":"0.5.4", | ||
"description":"A lean and mean web router", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
9070
245