Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor variable name from lazyrouter to lazyRouter for camel case consistency #5755

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ app.defaultConfiguration = function defaultConfiguration() {
*
* @private
*/
app.lazyrouter = function lazyrouter() {
app.lazyRouter = function lazyRouter() {
if (!this._router) {
this._router = new Router({
caseSensitive: this.enabled('case sensitive routing'),
Expand Down Expand Up @@ -218,7 +218,7 @@ app.use = function use(fn) {
}

// setup router
this.lazyrouter();
this.lazyRouter();
var router = this._router;

fns.forEach(function (fn) {
Expand Down Expand Up @@ -259,7 +259,7 @@ app.use = function use(fn) {
*/

app.route = function route(path) {
this.lazyrouter();
this.lazyRouter();
return this._router.route(path);
};

Expand Down Expand Up @@ -326,7 +326,7 @@ app.engine = function engine(ext, fn) {
*/

app.param = function param(name, fn) {
this.lazyrouter();
this.lazyRouter();

if (Array.isArray(name)) {
for (var i = 0; i < name.length; i++) {
Expand Down Expand Up @@ -493,7 +493,7 @@ methods.forEach(function(method){
return this.set(path);
}

this.lazyrouter();
this.lazyRouter();

var route = this._router.route(path);
route[method].apply(route, slice.call(arguments, 1));
Expand All @@ -512,7 +512,7 @@ methods.forEach(function(method){
*/

app.all = function all(path) {
this.lazyrouter();
this.lazyRouter();

var route = this._router.route(path);
var args = slice.call(arguments, 1);
Expand Down