PrivateChatToolBar = React.createClass({ componentDidMount: function() { if(isLandscape() || isPortrait()) { return $("#newMessageInput").focus(); } }, handleClick: function() { console.log("I'm in the handleClick function"); setInSession('inChatWith', 'PUBLIC_CHAT'); return setInSession('chats', getInSession('chats').map(chat => { if(chat.userId === "PUBLIC_CHAT") { chat.gotMail = false; chat.number = 0; } return chat; })); }, render(){ return (