{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/2e1599d22dce3e1661b6e63e8514b38e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"2e1599d22dce3e1661b6e63e8514b38e","url":"https://api.github.com/users/millermedeiros","login":"millermedeiros","id":155633},"milestone":null,"labels":[{"name":"enhancement","color":"0b02e1","url":"https://api.github.com/repos/millermedeiros/crossroads.js/labels/enhancement"},{"name":"feature","color":"d7e102","url":"https://api.github.com/repos/millermedeiros/crossroads.js/labels/feature"}],"assignee":null,"updated_at":"2011-11-01T17:22:54Z","comments":2,"closed_at":"2011-11-01T17:22:54Z","url":"https://api.github.com/repos/millermedeiros/crossroads.js/issues/31","body":"right now crossroads uses `route.matched.dispatch.apply()` to pass captured values as parameters, I think we should create an option to toggle between passing parameters as an Array or calling `apply()`... it will probably increase 2-3 lines of code and can reduce the need of using `normalize_` just for that reason...\r\n\r\nmaybe we should even add a third option to return parameters as an object (like the one we pass to normalize and validation methods..) all the heavy logic is already there, only problem I can foresee is that `normalize_` returns an array so it will be impossible to map each value to the real key name (values can be out of order, missing, extra values...), probably user will need to return an object instead of an array if handlers expects objects (which should be totally fine if documented).\r\n\r\nnot sure if it should be a global setting (per Router) or if each Route should also have it's own setting (that bypass Router setting)...","html_url":"https://github.com/millermedeiros/crossroads.js/issues/31","number":31,"title":"add option to set how parameters should be passed to handlers","id":1838522,"created_at":"2011-10-06T22:20:41Z"},"action":"closed"}