delete unused variables
Esse commit está contido em:
@@ -16,3 +16,4 @@ testing
|
|||||||
.coverage_data
|
.coverage_data
|
||||||
cover_html
|
cover_html
|
||||||
test.js
|
test.js
|
||||||
|
.idea
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ app.init = function(){
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
app.defaultConfiguration = function(){
|
app.defaultConfiguration = function(){
|
||||||
var self = this;
|
|
||||||
|
|
||||||
// default settings
|
// default settings
|
||||||
this.enable('x-powered-by');
|
this.enable('x-powered-by');
|
||||||
this.set('env', process.env.NODE_ENV || 'development');
|
this.set('env', process.env.NODE_ENV || 'development');
|
||||||
@@ -103,7 +101,7 @@ app.defaultConfiguration = function(){
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
app.use = function(route, fn){
|
app.use = function(route, fn){
|
||||||
var app, handle;
|
var app;
|
||||||
|
|
||||||
// default route to '/'
|
// default route to '/'
|
||||||
if ('string' != typeof route) fn = route, route = '/';
|
if ('string' != typeof route) fn = route, route = '/';
|
||||||
@@ -404,7 +402,7 @@ app.configure = function(env, fn){
|
|||||||
|
|
||||||
methods.forEach(function(method){
|
methods.forEach(function(method){
|
||||||
app[method] = function(path){
|
app[method] = function(path){
|
||||||
if ('get' == method && 1 == arguments.length) return this.set(path);
|
if ('get' == method && 1 == arguments.length) return this.set(path);
|
||||||
var args = [method].concat([].slice.call(arguments));
|
var args = [method].concat([].slice.call(arguments));
|
||||||
if (!this._usedRouter) this.use(this.router);
|
if (!this._usedRouter) this.use(this.router);
|
||||||
this._router.route.apply(this._router, args);
|
this._router.route.apply(this._router, args);
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário