Comparing version 0.5.7 to 0.5.9
11
index.js
@@ -70,3 +70,6 @@ var http = require('http'); | ||
return this; | ||
}; | ||
} | ||
this.emit('mount', method, pattern, rewrite, fn); | ||
if (typeof pattern === 'function') { | ||
@@ -199,3 +202,7 @@ this._end[httpMethod] = pattern; | ||
var loop = function() { | ||
var loop = function(err) { | ||
if (err && next) { | ||
next(err); | ||
return; | ||
} | ||
if (index >= routes.length) { | ||
@@ -202,0 +209,0 @@ if (next && (!end || end === NOT_FOUND)) { |
{ | ||
"name":"router", | ||
"version":"0.5.7", | ||
"version":"0.5.9", | ||
"description":"A lean and mean web router", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
8956
248