Skip to content
This repository was archived by the owner on May 30, 2020. It is now read-only.

Commit

Permalink
✨ Minified library
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev committed Mar 30, 2018
1 parent 7b240b7 commit 8938b94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/router/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var router = function () {
case '/#':
route = route.substr(2);
break;
}
};

parent.routes.push({
name: name,
Expand Down Expand Up @@ -141,7 +141,7 @@ var router = function () {
path = '';
} else if (!OnlySlash && path.substr(0, 1) === '/') {
path = path.substr(1);
}
};

return path;
};
Expand Down Expand Up @@ -180,7 +180,7 @@ var router = function () {

URIarray = URIarray.join('');

if(RouteOptions.RouteArray === URIarray){
if(RouteOptions.RouteArray === URIarray) {
parent.routes.forEach(function(route){
if (route.route === Route && parent.notfound) {
setRoute(route, RouteOptions.params);
Expand Down Expand Up @@ -260,7 +260,7 @@ let RouterRequest = function () {
this.getURI = function () {
if (location.hash.substr(0, 2) === '#/') {
URI = location.hash.substr(1);
}
};

return URI;
};
Expand Down Expand Up @@ -294,7 +294,7 @@ let BeforeMiddleware = function (route, callback) {
case '/#':
this.route = this.route.substr(2);
break;
}
};

if (this.callback != null) {
if (this.route === '*') {
Expand Down
2 changes: 1 addition & 1 deletion lib/router/router.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8938b94

Please sign in to comment.