Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Apr 9, 2015
1 parent acce045 commit 6b7ba82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ let Router = (function () {
this.insert(method, path, handler, SNODE, true);
};

// if bool is ture, push it to the top index of edges

Router.prototype.insert = function insert(method, path, handler, has) {
let bool = arguments[4] === undefined ? false : arguments[4];

Expand Down
1 change: 1 addition & 0 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class Router {
this.insert(method, path, handler, SNODE, true);
}

// if bool is ture, push it to the top index of edges
insert(method, path, handler, has, bool = false) {
let cn = this.trees[method]; // Current node as root
let search = path;
Expand Down

0 comments on commit 6b7ba82

Please sign in to comment.