Comparing version 0.5.10 to 0.5.11
@@ -135,6 +135,10 @@ var http = require('http'); | ||
var server = this.server || http.createServer(); | ||
var self = this; | ||
this.bind(server); | ||
this.on('listening', callback || noop); | ||
server.once('listening', callback || noop); | ||
server.once('listening', function() { | ||
self.emit('listening'); | ||
}); | ||
server.listen(port); | ||
@@ -141,0 +145,0 @@ |
{ | ||
"name":"router", | ||
"version":"0.5.10", | ||
"version":"0.5.11", | ||
"description":"A lean and mean web router", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
9134
255