Comparing version 0.1.0-beta-33 to 0.1.0-beta-34
@@ -93,3 +93,3 @@ "use strict"; | ||
createUrl: function Router_createUrl(route, params) { | ||
var i, len = this.routes.length, routeRule, url, anchor = ''; | ||
var routeRule, url, anchor = '', routes; | ||
@@ -113,5 +113,6 @@ if (!Type.isString(route)) { | ||
params = core.copy(params); | ||
routes = this.routes.slice(); | ||
for (i = len - 1; i > -1; --i) { | ||
routeRule = this.routes[i]; | ||
while (routes.length) { | ||
routeRule = routes.shift(); | ||
url = routeRule.createUrl(route, params); | ||
@@ -118,0 +119,0 @@ if (url) { |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.0-beta-33", | ||
"version": "0.1.0-beta-34", | ||
"dependencies" : { | ||
@@ -8,0 +8,0 @@ "mongoose": "3.8.x", |
125478
4037