Skip to content
Myr

Refactoring: no need for add 'del' and 'all' to methods

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Pavel Lang · committed by Pavel Lang · parent b1ff685 · Browse files · 1 file+1 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:lib/application.js+1 added-3 removed
11/**2 * Module dependencies.3 */45var connect = require('connect')6 , Router = require('./router')8 , methods = Router.methods.concat('del', 'all')7 , methods = Router.methods8 , middleware = require('./middleware')9 , debug = require('debug')('express:application')10 , locals = require('./utils').locals11 , View = require('./view')
413 unmodified lines
425426app.all = function(path){427 var args = arguments;428 methods.forEach(function(method){430 if ('all' == method || 'del' == method) return;429 app[method].apply(this, args);430 }, this);431 return this;432};
100 unmodified lines