From 20c4c61cffa600ad4f59dd296db98efc909b6039 Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Tue, 2 Dec 2014 11:04:30 -0600 Subject: [PATCH] Doc Site - Code cleanup --- docs/src/app/components/master.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/src/app/components/master.jsx b/docs/src/app/components/master.jsx index ecbf119426b329..2bb951807c0ed8 100644 --- a/docs/src/app/components/master.jsx +++ b/docs/src/app/components/master.jsx @@ -17,10 +17,11 @@ var Master = React.createClass({ mixins: [Router.State], render: function() { - var title; - if (this.isActive('get-started')) title = 'Get Started'; - if (this.isActive('css-framework')) title = 'Css Framework'; - if (this.isActive('components')) title = 'Components'; + + var title = + (this.isActive('get-started')) ? 'Get Started' : + (this.isActive('css-framework')) ? 'Css Framework' : + (this.isActive('components')) ? 'Components' : ''; return (