From f51a7c66c5672e9cf2638d9f884b813b28de74c9 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Tue, 12 Aug 2014 08:20:15 -0700 Subject: [PATCH] Style consistency Give your anonymous functions a little breathing room, guys. --- modules/components/Link.js | 2 +- modules/components/Redirect.js | 4 ++-- modules/components/Route.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/components/Link.js b/modules/components/Link.js index 15bb915201..09c7c0eec4 100644 --- a/modules/components/Link.js +++ b/modules/components/Link.js @@ -109,7 +109,7 @@ var Link = React.createClass({ }); }, - handleClick: function(event) { + handleClick: function (event) { var allowTransition = true; var ret; diff --git a/modules/components/Redirect.js b/modules/components/Redirect.js index b4ee3dddbb..b8546640c9 100644 --- a/modules/components/Redirect.js +++ b/modules/components/Redirect.js @@ -12,12 +12,12 @@ function Redirect(props) { function createRedirectClass(to) { return React.createClass({ statics: { - willTransitionTo: function(transition, params, query) { + willTransitionTo: function (transition, params, query) { transition.redirect(to, params, query); } }, - render: function() { + render: function () { return null; } }); diff --git a/modules/components/Route.js b/modules/components/Route.js index 7085f1a82a..8fb22e5a0e 100644 --- a/modules/components/Route.js +++ b/modules/components/Route.js @@ -72,7 +72,7 @@ var Route = React.createClass({ }, - getDefaultProps: function() { + getDefaultProps: function () { return { preserveScrollPosition: false };