diff --git a/lib/router.js b/lib/router.js index 8284397..268b5bf 100644 --- a/lib/router.js +++ b/lib/router.js @@ -285,15 +285,12 @@ Router.prototype.use = function () { debug('use called %s', args); var name = typeof args[0] === 'string' || util.isRegExp(args[0]) ? args.shift() : '*'; if (!args.length) throw new Error('we have the name, but need a handler'); - var self = this; var fns = this.fns(name); - var i, arg, type; - for (i=0; i