From 4d00cf576e402488c16ba763b43932aeb8d136fb Mon Sep 17 00:00:00 2001 From: Zadielerick Date: Mon, 15 Jun 2015 13:33:09 -0500 Subject: [PATCH] Fixed syntax on example usage code --- README.md | 2 +- docs/src/app/components/pages/get-started.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2893680bfc8b4b..c8b05fc2de9c85 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ var SomeAwesomeComponent = React.createClass({ muiTheme: React.PropTypes.object }, - getChildContext() { + getChildContext: function() { return { muiTheme: ThemeManager.getCurrentTheme() }; diff --git a/docs/src/app/components/pages/get-started.jsx b/docs/src/app/components/pages/get-started.jsx index a1df5de7a7304d..db6e68fd6388ec 100644 --- a/docs/src/app/components/pages/get-started.jsx +++ b/docs/src/app/components/pages/get-started.jsx @@ -50,7 +50,7 @@ class GetStarted extends React.Component { ' childContextTypes: {\n' + ' muiTheme: React.PropTypes.object\n' + ' },\n\n' + - ' getChildContext() {\n' + + ' getChildContext: function() {\n' + ' return {\n' + ' muiTheme: ThemeManager.getCurrentTheme()\n' + ' };\n' +