From 8f6322d53e0e50e1b006e8023628f0f632073c9e Mon Sep 17 00:00:00 2001 From: ethanpil Date: Fri, 13 Dec 2013 14:10:01 -0800 Subject: [PATCH] #69 Create a globally accessible params --- path.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/path.js b/path.js index d56a2d8..25cc1fd 100644 --- a/path.js +++ b/path.js @@ -86,6 +86,7 @@ var Path = { Path.routes.previous = Path.routes.current; Path.routes.current = passed_route; matched_route = Path.match(passed_route, true); + Path.routes.currentparams = matched_route.params; if (Path.routes.previous) { previous_route = Path.match(Path.routes.previous); @@ -189,4 +190,4 @@ Path.core.route.prototype = { Path.routes.defined[this.path].action(); } } -}; \ No newline at end of file +};