Skip to content

Commit

Permalink
Fix the way we call the route handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Jul 23, 2014
1 parent fdc9967 commit 615757a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/components/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ function computeHandlerProps(matches, query) {
if (arguments.length > 2 && typeof arguments[2] !== 'undefined')
throw new Error('Passing children to a route handler is not supported');

return route.props.handler.apply(null, mergeProperties(props, addedProps));
return route.props.handler(mergeProperties(props, addedProps));
}.bind(this, props);
});

Expand Down

0 comments on commit 615757a

Please sign in to comment.