# HG changeset patch # User Mads Kiilerich # Date 2014-07-02 23:03:28 # Node ID c560a5789512ecb25c46d37b1a257cf5f8d87667 # Parent 7eb8544cefbe766c0a5716f2a14bc09e5ad4fec1 rhodecode.js: pyroute, don't iterate over req_params, make for loop over its length diff --git a/rhodecode/public/js/rhodecode.js b/rhodecode/public/js/rhodecode.js --- a/rhodecode/public/js/rhodecode.js +++ b/rhodecode/public/js/rhodecode.js @@ -300,8 +300,8 @@ var pyroutes = (function() { //fix escape route_tmpl = unescape(route_tmpl); keys = []; - for (o in req_params){ - keys.push(req_params[o]) + for (var i=0; i < req_params.length; i++) { + keys.push(req_params[i]) } matchlist[route_name] = [ route_tmpl,